Ehsan Akhgari
d50878a182
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
Aryeh Gregor
ba69aaa763
Bug 700538 part 4 - Remove now-redundant nsHTMLEditor::IsNodeInActiveEditor; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
c2fb29a4a2
Bug 700538 part 3 - Add and use new EditorRoot methods in nsEditor; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
3af9ba928a
Bug 700538 part 1 - Name some nsEditor methods more consistently; r=ehsan
2012-05-01 13:01:28 +03:00
Aryeh Gregor
80c985d67f
Bug 751547 - Unify action enums in editor/; r=ehsan
2012-05-05 21:52:29 +03:00
Ms2ger
125c939be4
Bug 750103 - Cleanup nsEditor::EndOfDocument(); r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
4df91dc293
Bug 750062 - Assert preconditions in IsVisTextNode; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
552a17939d
Bug 750064 - Add some GetPriorNode/GetNextNode overloads that take nsINode; r=ehsan
2012-05-05 11:00:05 +02:00
Aryeh Gregor
e61ab6cba6
Bug 748313 part 2 - Always try to use CSS values, even for collapsed selections; r=ehsan
2012-05-03 10:09:44 +03:00
Aryeh Gregor
a685451510
Bug 746915 part 1 - Move editing-related tests to editor/ directories; r=ehsan
...
--HG--
rename : content/html/content/test/test_bug408231.html => editor/libeditor/base/tests/test_bug408231.html
rename : content/html/document/test/test_bug742261.html => editor/libeditor/base/tests/test_bug742261.html
rename : content/html/document/test/test_bug404320.html => editor/libeditor/html/tests/test_bug404320.html
rename : content/html/document/test/test_bug468353.html => editor/libeditor/html/tests/test_bug468353.html
rename : layout/reftests/bugs/388980-1-ref.html => layout/reftests/editor/388980-1-ref.html
rename : layout/reftests/bugs/388980-1.html => layout/reftests/editor/388980-1.html
2012-05-03 10:09:44 +03:00
Aryeh Gregor
01a3e98230
Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan
2012-05-01 09:34:52 +03:00
Aryeh Gregor
a949fda3e3
Bug 748303 part 2 - Handle non-text/elements correctly when calling (Tag)CanContain(Tag); r=ehsan
2012-05-01 09:34:52 +03:00
Jared Wein
1504e6e3d5
Bug 702463 - Increasing the timeout of the tests due to the presence of multiple refresh drivers. r=ehsan
2012-04-30 13:44:55 -04:00
Graeme McCutcheon
09036b4c86
No bug - annoying comment typo in nsEditorEventListener.cpp DONTBUILD
2012-04-26 08:51:10 +01:00
Masayuki Nakano
ba56663cd3
Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug
2012-04-25 12:00:02 +09:00
Ehsan Akhgari
9780e4893b
Bug 748223 - Pack nsEditor better; r=roc
2012-04-24 00:54:11 -04:00
Ehsan Akhgari
5cd881d802
Backed out changeset 3e6ca2158274 because of build bustage
2012-04-24 12:16:34 -04:00
Ehsan Akhgari
bd4140a99d
Bug 748223 - Pack nsEditor better; r=roc
2012-04-24 00:54:11 -04:00
Aryeh Gregor
6ed928a21d
Bug 599983 part 2 - Don't emit or process _moz_dirty more than necessary; r=ehsan,bz
2012-04-24 09:06:11 +03:00
Aryeh Gregor
fc86041529
Bug 599983 part 1 - Clean up nsEditor::MarkNodeDirty; r=ehsan
2012-04-24 09:06:11 +03:00
Veeraya Pupatwibul
1bdf9d9923
Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger
2012-04-04 11:15:10 +02:00
Aryeh Gregor
2c1ee92a02
Bug 738366 - Default styleWithCSS to false; r=ehsan
2012-04-03 17:16:05 +03:00
Ms2ger
9427a8db0d
Bug 738608 - Introduce nsINode::Length(); r=smaug
2012-03-29 23:09:04 +02:00
Masayuki Nakano
2ab8e3fb4a
Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug
2012-03-27 10:36:44 +09:00
Matt Brubeck
f83a9ab93e
Merge mozilla-central and mozilla-inbound
2012-03-24 09:05:27 -07:00
Ms2ger
a033505149
Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan
2012-03-24 09:19:14 +01:00
Ehsan Akhgari
90f09f9955
Bug 737889 - Part 2: Stop the propagarion of drag/drop events over non-editable content; r=roc
2012-03-23 11:35:40 -04:00
Ehsan Akhgari
5f3425b10d
Bug 734530 - Spell check textareas if they're reframed when focused; r=roc
...
--HG--
rename : layout/reftests/editor/spellcheck-textarea-focused.html => layout/reftests/editor/spellcheck-textarea-focused-reframe.html
2012-03-19 12:21:56 -04:00
Richard Newman
f8f9fa6f5d
Merge m-c to m-i.
2012-02-23 18:37:12 -08:00
Richard Newman
85840c2035
Merge last win pgo-green changeset from m-i to m-c.
2012-02-23 18:35:17 -08:00
Matthew Schranz
7e8fb26c1e
Bug 698381 - Make Node.cloneNode aDeep argument optional, default to true. r=smaug
2012-02-23 14:23:30 +01:00
Olli Pettay
6139688226
Bug 730013 - don't addref/release nsTransactionManager so much to prevent it to end up to the purple buffer, r=ehsan
2012-02-23 22:47:37 +02:00
Neil Deakin
0f1521a84c
Bug 499008, part 6, editor drag drop tests, r=ehsan
2012-02-17 09:16:59 -05:00
Neil Deakin
3a318c367e
Bug 499008, part 5, merge the text and html implementations of InsertFromDrop, r=ehsan
2012-02-17 09:16:59 -05:00
Neil Deakin
ed4ec92cee
Bug 499008, part 4, convert editor drop handling to use datatransfers instead of the drag service, r=ehsan
2012-02-17 09:16:59 -05:00
Neil Deakin
de5e8ee45b
Bug 499008, part 2, move editor dragstart handling to ContentAreaDragDrop, r=ehsan
2012-02-17 09:16:59 -05:00
Neil Deakin
ede7023feb
Bug 728652, null check return value of MozGetDataAt, r=ehsan
2012-02-23 15:59:45 -05:00
Daniel Holbert
706eb31699
Bug 458167 patch 6: s/it's/its/ in comments within editor. r=ehsan
2012-02-15 01:18:24 -08:00
Ehsan Akhgari
370cc1fde8
Bug 725069 - Part 2: Only accept text and element nodes for the editability check; r=roc
2012-02-08 18:09:51 -05:00
Ehsan Akhgari
a802e7dffa
Bug 725069 - Never mark the comment nodes as editable; r=roc
2012-02-07 18:39:05 -05:00
Neil Deakin
cb7c3c2729
Bug 707382, merge nsIDOMDataTransfer and nsIDOMNSDataTransfer, r=jonas
2012-02-07 13:02:32 -05:00
Panagiotis Koutsourakis
791aa57b19
Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
...
Files named Makefile.in containing the expression
DIRS += <foo>
or
DIRS = <foo>
inside the conditional expression
ifdef ENABLE_TESTS
...
endif
are changed to
TEST_DIRS += tests
outside any conditional expression.
The files
./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in
contain the string
ifdef ENABLE_TESTS
but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Ms2ger
1c2ff7f87b
Bug 720974 - Remove IsMozEditorBogusNode(nsIDOMNode*); r=ehsan
2012-02-01 11:54:22 +01:00
Ms2ger
cc91aec3cf
Bug 722419 - Part b: BeginningOfDocument / GetFirstEditableNode; r=ehsan
2012-02-01 11:54:22 +01:00
Ms2ger
f6c81888f5
Bug 722419 - Part a: Introduce another version of GetNextNode; r=ehsan
2012-02-01 11:54:22 +01:00
Ms2ger
c080e16e2e
Bug 722418 - Various nsEditor cleanup; r=ehsan
2012-02-01 11:54:22 +01:00
Ms2ger
ced62efd51
Bug 721483 - Clean up RemoveElementIfNoStyleOrIdOrClass / HasStyleOrIdOrClass; r=ehsan
2012-02-01 11:54:22 +01:00
Boris Zbarsky
5d70c080d6
Bug 713427. Don't assume things about lazy frame construction bits that just aren't true when doing IsVisible() testing. r=tnikkel
2012-01-18 16:10:06 -05:00
Tim Taubert
d798b882da
merge m-c to fx-team
2012-01-16 11:20:19 +01:00
Justin Wood
94e66a942e
Merge m-c tip to m-i
2012-01-15 05:29:24 -05:00
Ms2ger
15ab474eed
Bug 717370 - Cleanup range-using and nearby code in editor; r=smaug+ehsan
2012-01-15 09:13:12 +01:00
Jared Wein
3a800a6051
Bug 198964 - Enable smooth scrolling by default. r=gavin
2012-01-13 16:26:34 -08:00
Masayuki Nakano
6e8f73fabc
Bug 717147 input events which are fired after compositionupdate should be trusted events r=ehsan
2012-01-13 15:19:22 +09:00
Ms2ger
1dac0d44c1
Bug 715110 - Don't use getPreventDefault in editor; r=ehsan
2012-01-11 09:23:07 +01:00
Ms2ger
2e0c12b87c
Bug 716630 - Kill editor's warnings; r=ehsan
2012-01-11 09:22:16 +01:00
David Zbarsky
e96cf389ad
Bug 682611 - Part 2: Remove nsIRange; r=smaug
2012-01-10 15:19:54 +01:00
David Zbarsky
27f2baf8e1
Bug 682611 - Part 1: Merge nsIDOMRange and nsIDOMNSRange; r=Ms2ger r=smaug
2012-01-10 15:19:54 +01:00
Markus Stange
28a839403a
Bug 598482 part 15 - Rename view update batches to refresh disable batches and only use them in the two places that can enter reflow (where synchronous painting is permitted). r=roc
2011-12-23 22:52:23 -05:00
Markus Stange
cb70f28632
Bug 598482 part 7 - Remove NS_VMREFRESH_* flags. NS_VMREFRESH_NO_SYNC is now the unchangable default. r=roc
2011-12-23 22:52:22 -05:00
Markus Stange
b4421e4a3b
Bug 598482 part 6 - Remove nsIPlaintextEditor::eEditorUseAsyncUpdatesMask because it doesn't have any effect anymore. r=roc
2011-12-23 22:52:21 -05:00
Boris Zbarsky
63ca05b118
Bug 716031. Fix editor test to not assume simply doing a timeout will flush layout. r=ehsan pending
2012-01-14 22:54:48 -05:00
Neil Rashbrook
b0a7bafbb1
Bug 714164 Restore some global window commands that were removed as part of bug 669026 because they appeared to be unused r=ehsan sr=roc
2012-01-05 21:33:41 +00:00
Ms2ger
0045cb51cf
Bug 714258 - Remove unused variable rv in nsEditorController::RegisterEditorCommands; r=ehsan
2012-01-02 19:05:19 +01:00
Masayuki Nakano
b5a505bab8
Bug 713502 Fire input event even during composition r=smaug+ehsan
2011-12-31 23:04:37 +09:00
Olli Pettay
6e50a9611b
Bug 714250 - Optimize nsTransactionManager traversing, r=ehsan, mccr8
...
--HG--
extra : rebase_source : ee6fbf5481e9f3602ee8afe032963f662ae3fd03
2011-12-30 19:16:10 +02:00
Neil Rashbrook
02c6a3f7d4
Bug 692153 Make Copy and Select All always work even when contenteditable areas are present r=ehsan
2011-12-30 17:42:04 +00:00
Phil Ringnalda
30796bb59b
Merge m-i <-> m-c
2011-12-24 21:50:23 -08:00
Neil Rashbrook
5d0063889c
Bug 669026 Fix caret movement when contenteditable areas are present r=ehsan
2011-12-24 00:11:30 +00:00
Masayuki Nakano
e925b75494
Bug 698949 Editor should refuse untrusted keypress event r=smaug
2011-12-21 21:11:36 +09:00
Ms2ger
8c6b69c5ee
Bug 709523 - Part c: Remove EditAggregateTxn::{GetCount,GetTxnAt,SetName}; r=ehsan a=edmorley
2011-12-11 21:00:27 +01:00
Ms2ger
e647b3eb40
Bug 709523 - Part b: Remove nsDOMIterator::ForEach; r=ehsan a=edmorley
2011-12-11 21:00:25 +01:00
Ms2ger
4671ebdb7a
Bug 709523 - Part a: Remove nsDOMSubtreeIterator::Init; r=ehsan a=edmorley
2011-12-11 21:00:23 +01:00
Atul Aggarwal
e646b2c94c
Bug 703239 - Fixing build warnings in editor/, r=ehsan
2011-12-22 23:46:56 +05:30
Phil Ringnalda
3f8c5b26b0
Back out 1ac4cb2e7c32 to c631f9c3e9a9 (bug 598482) for Android reftest failures
2011-12-23 22:21:58 -08:00
Markus Stange
34f17128b7
Bug 598482 part 15 - Rename view update batches to refresh disable batches and only use them in the two places that can enter reflow (where synchronous painting is permitted). r=roc
2011-12-23 22:52:23 -05:00
Markus Stange
4ef3f032b5
Bug 598482 part 7 - Remove NS_VMREFRESH_* flags. NS_VMREFRESH_NO_SYNC is now the unchangable default. r=roc
2011-12-23 22:52:22 -05:00
Markus Stange
8d38301cdf
Bug 598482 part 6 - Remove nsIPlaintextEditor::eEditorUseAsyncUpdatesMask because it doesn't have any effect anymore. r=roc
2011-12-23 22:52:21 -05:00
Fabien Cazenave
67ba2ac03b
Bug 684187 - Use dom::Element instead of nsIDOMElement for nsEditor::mRootElement; r=ehsan
2011-12-03 22:50:15 +01:00
Masayuki Nakano
145d565bb0
Bug 392159 Use nsIClipboard::SupportsSelectionClipboard() instead of #ifdef in nsEditorEventListener r=ehsan
2011-11-30 11:57:41 +09:00
Boris Zbarsky
b327466b66
Bug 635618 part 5. Pass an optional argument to GetPriorNode and GetNextNode to limit the search. r=ehsan
2011-11-28 07:54:32 -05:00
Boris Zbarsky
934bc3d8e0
Bug 635618 part 4. Switch GetNextNode and GetPriorNode to working with nsINode. r=ehsan
2011-11-28 07:54:14 -05:00
Boris Zbarsky
a4cebc0963
Bug 635618 part 3. Switch GetPriorNodeImpl and GetNextNodeImpl to working with nsINode. r=ehsan
2011-11-28 07:54:03 -05:00
Boris Zbarsky
100a69dffc
Bug 635618 part 2. Add nsINode overloads of various editor helper methods. r=ehsan
2011-11-28 07:53:29 -05:00
Boris Zbarsky
4d317e516c
Bug 635618 part 1. Only get computed style in IsElementVisible if we end up in a situation where we're waiting on lazy frame construction. r=ehsan
2011-11-28 07:53:15 -05:00
Masayuki Nakano
41b9f0b138
Bug 685395 part.6 Notify mouse click event on editor to widget r=roc+smaug+doug.turner
2011-11-27 20:51:53 +09:00
Masayuki Nakano
1360b0f19b
Bug 685395 part.5 Reomve IME state in nsIContent r=roc, sr=matspal
2011-11-27 20:51:53 +09:00
Masayuki Nakano
c51f522330
Bug 697842 stopPropagation() shouldn't break IME composition r=ehsan
2011-11-27 09:36:36 +09:00
Masayuki Nakano
27cba84c99
Bug 674770 part.1 Shouldn't accept click event if the event target isn't in focused editor r=ehsan
2011-11-26 13:51:48 +09:00
Ehsan Akhgari
abf9372815
Bug 682712 - Set the correct selection type when initializing the selection in editable content; r=roc
2011-11-18 16:47:40 -05:00
Ed Morley
6a998be2c5
Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail
2011-11-05 18:35:59 +00:00
Rail Aliiev
364e83c545
Bug 616542 - Shorten file path length of mochitest; r=ted
2011-11-04 21:13:42 +00:00
Ms2ger
d0aac143b2
Bug 697210 - Part c: Remove nsIDocument::CreateElem's aDocumentDefaultType argument; r=bz
2011-10-29 22:21:20 +02:00
Ms2ger
d559f12c63
Bug 690120 - Make nsEditor::GetAttributeValue not use attribute nodes; r=ehsan
2011-10-29 22:19:27 +02:00
Ms2ger
567f4260b6
Bug 684821 - Remove nsIDOMNSHTMLElement; r=peterv
2011-10-29 22:03:55 +02:00
Ehsan Akhgari
74d9b6f1fb
Backout changeset be42bc18185a (bug 612128) because of bug 688423
2011-10-25 22:32:55 -04:00
Ehsan Akhgari
441646faaa
Backout changeset a4d5ca366ef1 (bug 612128 followup) because of bug 688423
2011-10-25 22:31:15 -04:00
Ehsan Akhgari
50052a640f
Bug 612128 followup - Adjust the assertion count because bug bug 695364 should be fixed now
2011-10-20 14:01:12 -04:00
Ehsan Akhgari
8cfbed187e
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).
--HG--
extra : rebase_source : 37317b4d95c2ea957be81420583a98a24f0864ac
2010-11-16 15:45:49 -05:00
Ehsan Akhgari
6142aabb94
Bug 688789 - Stop touching the frame tree to determine whether a node is editable or not; r=roc
2011-10-17 00:11:29 -04:00
Ehsan Akhgari
2a602a5685
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00