Commit Graph

414 Commits

Author SHA1 Message Date
Aryeh Gregor
0366e557db Bug 757371 part 3 - Reuse existing style elements more aggressively; r=ehsan 2012-05-29 10:12:51 +03:00
Aryeh Gregor
626faeaf0f Bug 748307 part 5 - Support insertText, forwardDelete, insertParagraph per spec; r=ehsan 2012-05-22 12:37:17 +03:00
Aryeh Gregor
8137ef02b0 Bug 748307 part 2 - Make WillDoAction take an nsTypedSelection; r=ehsan 2012-05-22 12:37:17 +03:00
Ehsan Akhgari
03eb49779c Bug 741216 - Allow dropping files into the file picker control; r=bzbarsky 2012-04-02 16:25:09 -04:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Aryeh Gregor
1a3922499a Bug 742240 - Handle unsupported commands per spec in execCommand/queryCommand*; r=ehsan 2012-04-15 15:57:20 +03:00
Ms2ger
faa0b8ae7d Merge m-c to m-i. 2012-05-18 13:32:20 +02:00
Ms2ger
895fc86ccf Bug 755311 - Simplify SetDocTitleTxn::SetDomTitle; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
2eb4157162 Bug 755310 - Use nsINode::Length() in nsEditor::CreateTxnForDeleteInsertionPoint; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
c53f7b05e8 Bug 752253 - Remove nsEditor::GetIndexOf; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
d06c354b02 Bug 750053 - Part b: Stop using nsISelection::GetIsCollapsed in editor/libeditor; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
0d5cf8fa45 Bug 752203 - Cleanup nsEditor::NodesSameType; r=ehsan 2012-05-18 10:29:38 +02:00
Ms2ger
4bec394095 Bug 752045 - Handle document fragments correctly in *CanContain* methods; r=ehsan 2012-05-18 10:29:38 +02:00
Aryeh Gregor
1fffe1dc4d Bug 590640 part 5 - Delete empty wrappers when we delete the selection; r=ehsan 2012-05-10 17:54:33 +03:00
Aryeh Gregor
7cb03d1868 Bug 756045 - Turn "ASSERTION: anonymous nodes should not be in child lists" into an NS_WARNING; r=bz 2012-05-18 09:20:49 +03:00
Ehsan Akhgari
2be6b796b2 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
eb33f59b5f Bug 700538 part 4 - Remove now-redundant nsHTMLEditor::IsNodeInActiveEditor; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor
2ce277835c Bug 700538 part 3 - Add and use new EditorRoot methods in nsEditor; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor
e17949e50b Bug 700538 part 1 - Name some nsEditor methods more consistently; r=ehsan 2012-05-01 13:01:28 +03:00
Aryeh Gregor
cb28d967ce Bug 751547 - Unify action enums in editor/; r=ehsan 2012-05-05 21:52:29 +03:00
Ms2ger
b1945e4aa3 Bug 750103 - Cleanup nsEditor::EndOfDocument(); r=ehsan 2012-05-05 11:00:06 +02:00
Ms2ger
f27bb86c9a Bug 750062 - Assert preconditions in IsVisTextNode; r=ehsan 2012-05-05 11:00:06 +02:00
Ms2ger
34b3e1e2c4 Bug 750064 - Add some GetPriorNode/GetNextNode overloads that take nsINode; r=ehsan 2012-05-05 11:00:05 +02:00
Aryeh Gregor
4f8b1fc26d 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
a6483f6245 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
00a49bb9eb Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan 2012-05-01 09:34:52 +03:00
Aryeh Gregor
edf98a6601 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
0152ba6f95 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
cbf3d88591 No bug - annoying comment typo in nsEditorEventListener.cpp DONTBUILD 2012-04-26 08:51:10 +01:00
Masayuki Nakano
e089b336f8 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
d406da07d1 Bug 748223 - Pack nsEditor better; r=roc 2012-04-24 00:54:11 -04:00
Ehsan Akhgari
fff9b721e0 Backed out changeset 3e6ca2158274 because of build bustage 2012-04-24 12:16:34 -04:00
Ehsan Akhgari
44970911b7 Bug 748223 - Pack nsEditor better; r=roc 2012-04-24 00:54:11 -04:00
Aryeh Gregor
c7d23199c4 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
ac93d3f1ab Bug 599983 part 1 - Clean up nsEditor::MarkNodeDirty; r=ehsan 2012-04-24 09:06:11 +03:00
Veeraya Pupatwibul
26e9a6a204 Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger 2012-04-04 11:15:10 +02:00
Aryeh Gregor
ca85f01f9d Bug 738366 - Default styleWithCSS to false; r=ehsan 2012-04-03 17:16:05 +03:00
Ms2ger
63c2adf6c9 Bug 738608 - Introduce nsINode::Length(); r=smaug 2012-03-29 23:09:04 +02:00
Masayuki Nakano
acf546c04a 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
21e24f0ef9 Merge mozilla-central and mozilla-inbound 2012-03-24 09:05:27 -07:00
Ms2ger
e090679772 Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan 2012-03-24 09:19:14 +01:00
Ehsan Akhgari
227abf1ddc 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
e8037d0abc 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
7886693fb2 Merge m-c to m-i. 2012-02-23 18:37:12 -08:00
Richard Newman
200c9a86f4 Merge last win pgo-green changeset from m-i to m-c. 2012-02-23 18:35:17 -08:00
Matthew Schranz
62d6dff935 Bug 698381 - Make Node.cloneNode aDeep argument optional, default to true. r=smaug 2012-02-23 14:23:30 +01:00
Olli Pettay
ae99f8a2eb 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
1cef45a876 Bug 499008, part 6, editor drag drop tests, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
13c593e55b Bug 499008, part 5, merge the text and html implementations of InsertFromDrop, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
1d18d254ce 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