Ehsan Akhgari
85e673bce7
Backout changeset a72195ce0eaa (bug 612128) becasue of Fennec regressions
2011-09-22 18:09:44 -04:00
Ehsan Akhgari
ec2d83e852
Bug 612128 - Prevent the editor from modifying nodes which are not under an editing host; r=roc,bzbarsky
...
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living
under an editing host. Things like text controls which used to have that flag
previously will not have it any more. The flag would be set on their anonymous
div node instead. Note that if text controls actually fall under an editing
host, they will get the NODE_IS_EDITABLE flag.
This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes
are always considered to be editable).
2010-11-16 15:45:49 -05:00
arno renevier
2485241198
Bug 338427 - Spellchecker should respect the langi attribute; r=ehsan
2011-08-12 15:12:45 -04:00
Ms2ger
72dee98c7b
Bug 677340 - Return already_AddRefed instead of nsCOMPtr from various functions in editor/; r=ehsan
2011-08-11 15:29:59 +02:00
Henri Sivonen
147c3287ec
Bug 482909 part 2 - Implement an HTML/SVG/MathML sanitizer independently of parsers or serializers. r=bzbarsky.
2011-07-29 14:48:04 +03:00
Ehsan Akhgari
4a9dec68d7
Bug 414526 - Backspace at the beginning of a contenteditable element or delete at the end of one should not affect the rest of the contenteditable elements on the page; r=roc
...
The main fix here involves the introduction of the nsHTMLEditor::IsNodeInActiveEditor
API. This API returns true if the current selection in the document falls
inside the active editable section. The patch adds a bunch of checks using
this API to various places in the code to make sure that editing operations do
not escape their editing host.
There are also some unrelated fixes to range promotion code which fix the
bugs that have existed in that code before, but because of the lack of this
check were not uncovered before.
This patch also removes the nsTextEditUtils::InBody API which only made sense
in designMode documents, and was insufficient for contenteditable elements.
2011-07-14 11:25:07 -04:00
Ms2ger
7a41ef9f3e
Bug 670499 - Make nsEditor::CreateEventListeners return void; r=ehsan
2011-07-15 12:18:35 +02:00
Jonas Sicking
6a04ff1d9f
Bug 658714 Part 6: Fixups after search'n'replace s/nsPIDOMEventTarget/nsIDOMEventTarget/. r=smaug
2011-06-23 19:18:01 -07:00
Jonas Sicking
e3f6b769a1
Bug 658714 Part 5: Search'n'replace nsPIDOMEventTarget to nsIDOMEventTarget. r=smaug
2011-06-23 19:18:00 -07:00
Benjamin Smedberg
92bd44c461
Bug 617539 - Remove branch interfaces, nsIHTMLEditor_MOZILLA_2_0_BRANCH, straight backout of revision e9d979b4b4a0, r=ehsan
2011-03-25 11:03:33 -04:00
Ehsan Akhgari
c06813a2c5
Bug 407127 - Part 6: Remove the presshell argument to nsIEditor::Init as it's no longer necessary; r=roc
2011-03-11 00:40:31 -05:00
Ehsan Akhgari
075288f489
Bug 635532 - Don't try to hide the editor anonymous UIs during the cycle collection unlink phase needlessly. r=roc,jst, a=blocker
2011-02-19 21:43:07 -08:00
Peter Van der Beken
d78216fbaf
Fix for bug 633738 (quora.com bloats out of control (part 3)) - make nsHTMLEditor participate in CC, clear editor from SHistory if we're not storing anything else. r=jst, a=jst.
2011-02-16 13:07:47 +01:00
Ehsan Akhgari
d921d70f6f
Bug 612447 - Don't Recreate an editor object attached to a document in a frame if that frame is restyled; r=bzbarsky a=blocking-beta8+
2010-11-18 16:01:12 -05:00
Ehsan Akhgari
0450182992
Bug 611182 - Part 2: Correct the definition of EndOfDocument for the HTML editor in order to fix some tests which have been relying on the bogus node existing in non-empty editable documents; r=bzbarsky a=blocking-beta8+
2010-11-11 16:40:55 -05:00
Ehsan Akhgari
0908325de2
Bug 551704 - Part 5: Move breakIsVisible to nsIHTMLEditor_MOZILLA_2_0_BRANCH to make sure that nsIHTMLEditor does not change for Gecko 2.0; r=bzbarsky a=blocking-betaN+
...
This patch should be backed out on trunk when Gecko 2.0 has been branched.
2010-11-09 21:00:26 -05:00
Ehsan Akhgari
26b56e6566
Bug 542317 - Caret missing when an iframe is put into design mode when it already has focus; r=roc a=blocking-final+
2010-10-29 12:30:52 -04:00
Ehsan Akhgari
37297d45dc
Bug 597784 - The inserthtml command should not use a sanitizing fragment content sink; r=bzbarsky a=blocking-betaN,1.9.2.11,1.9.1.14
2010-09-27 13:21:34 -04:00
Masayuki Nakano
660981e020
Bug 389372 - Contenteditable node is still editable without focus; r=ehsan,masayuki,roc sr=jst a=blocking-2.0:betaN+
2010-07-22 12:22:44 -04:00
Masayuki Nakano
d7540e477b
backout the previous my check-ins
2010-07-22 11:11:34 +09:00
Masayuki Nakano
742e98c291
Bug 389372 Contenteditable node is still editable without focus r=ehsan+roc, sr=jst
2010-07-22 08:46:52 +09:00
Masayuki Nakano
a69e746d9f
Bug 545775 part.6 makes caret visible r=ehsan
2010-06-19 19:39:39 +09:00
Masayuki Nakano
eddb1d5460
Bug 545775 part.5 Text editor in ASUS Forum doesn't work r=ehsan
2010-06-17 14:32:05 +09:00
Masayuki Nakano
16f55c793b
Bug 545775 part.4 Move mutation observer to nsHTMLEditor r=ehsan
2010-06-17 14:31:15 +09:00
Masayuki Nakano
5f41263aaf
Bug 545775 part.3 Move selection initializer into nsEditor r=ehsan
2010-06-17 14:30:42 +09:00
Masayuki Nakano
ceaf9951b3
Bug 545775 part.2 Refactor GetPIDOMEventTarget() r=ehsan
2010-06-17 14:30:10 +09:00
Masayuki Nakano
255dc50f24
Bug 545775 part.1 Separate GetRootElement() r=ehsan
2010-06-17 14:29:40 +09:00
Masayuki Nakano
9d9e285291
Bug 564669 Remove nsIPlaintextEditor::handleKeyPress() r=smaug+ehsan, sr=roc
2010-06-10 10:16:58 +09:00
Ehsan Akhgari
c0245df31d
Backed out changeset 634e1f2cf46c because it breaks the Esc key in XUL dialogs (possibly among others)
2010-06-03 21:28:03 -04:00
Masayuki Nakano
d075ac396c
Bug 564669 Remove nsIPlaintextEditor::handleKeyPress() r=smaug, sr=roc
2010-06-02 16:24:56 +09:00
timeless@mozdev.org
6977583968
Bug 566552 Spell offset with an s especially nsHTMLEditor::AddPositioningOffet
...
r=glazou
2010-05-24 14:20:59 +02:00
Michael Kohler
5f19df86e0
Bug 564091: Fix spelling of nonexistent across the tree. r=timeless
...
--HG--
extra : rebase_source : 4f15f7fd6f90926b77d136be83af7f22c5ffa830
2010-05-23 12:26:15 -07:00
Craig Topper
cb8187eff9
Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron
2010-05-11 13:41:47 -07:00
L. David Baron
29772aa9c7
Removed unused member variable and code. (Bug 564074) r=ehsan
2010-05-05 18:20:43 -07:00
Masayuki Nakano
6aa99dc4be
Bug 488420 IME enabled state is not modified when a focused editor's readonly attribute is changed r=smaug
2010-05-05 02:40:39 +09:00
Masayuki Nakano
35cd0d8a5e
Bug 558970 nsEditorEventListener should store its owner as nsEditor rather than nsIEditor r=smaug
2010-04-19 21:20:42 +09:00
Masayuki Nakano
7d05909d39
Bug 552914 nsEditor::mFlags is never modified by SetFlags() r=smaug
2010-04-12 11:35:18 +09:00
Zack Weinberg
2c3e543d1d
Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron
...
--HG--
rename : layout/style/nsICSSLoader.h => layout/style/nsCSSLoader.h
2010-03-02 13:00:53 -08:00
Tom Dyas
8209cf7fbc
Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug
2010-01-10 20:45:45 -05:00
Josh Aas
f9051ae7e3
Backed out changeset bee6729280d8
2009-12-30 17:29:26 -05:00
Tom Dyas
13780ad38c
Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug
2009-12-30 15:58:33 -05:00
Robert O'Callahan
60ca055fc6
Backed out changeset 4c139bbb4895
...
--HG--
extra : rebase_source : c4bdf008d2ee70a9d0f74de567ae58de02123b20
2009-07-10 18:17:46 +12:00
Robert O'Callahan
f3245eefd5
Bug 502156. Make editor use nsContentUtils::CreateContextualFragment instead of instantiating a parser directly, when HTML content is pasted/dropped. This removes some code and lets the editor use the HTML5 parser if enabled. r+sr=peterv
2009-07-10 14:07:04 +12:00
Arpad Borsos
35b892b3aa
Bug 474369 - get rid of nsVoidArray, editor part; r=neil
2009-04-22 10:43:15 +02:00
Chris Pearce
b758ddf2ee
Bug 431086 - nsHTMLObjectResizer refactor.
2009-04-14 15:05:34 +12:00
Fred Jendrzejewski
63abee270a
Fix for bug 457104 (nsTextServicesDocument::FirstSelectedBlock dead?). r/sr=peterv.
...
--HG--
extra : rebase_source : 73e620aade6618aa90cebe0784754a68d5479a6d
2009-04-08 14:59:06 +02:00
Fred Jendrzejewski
7d5761cdfa
Bug 461047 - Replace nsStringArray with nsTArray<nsString>. r+sr=roc
2009-01-18 21:14:14 +01:00
Robert O'Callahan
1a9b00de4e
Backed out changeset 8019a959aade
2009-01-16 22:20:33 +13:00
Fred Jendrzejewski
b79ad6fa55
Bug 461047. Replace nsStringArray with nsTArray<nsString>. r+sr=roc
...
--HG--
extra : rebase_source : 7a20af24c97867efbb28dafa6a70ea1b4cf00e58
2009-01-16 20:51:04 +13:00
Arpad Borsos
4b171f9d59
Bug 414046 - Remove nsPresShell::GetLayoutObjectFor(), r/sr=roc
2008-09-04 22:32:39 +02:00