Commit Graph

442 Commits

Author SHA1 Message Date
Aryeh Gregor
719b1e1343 Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-06-21 15:54:26 +03:00
Aryeh Gregor
d6b1883aab Bug 766305 - WSFragment should use PRInt32 for offsets, not PRInt16; r=ehsan 2012-06-24 09:54:42 +03:00
Aryeh Gregor
a272f65e82 Bug 766413 - Fix crash in nsEditor::CreateTxnForDeleteInsertionPoint; r=ehsan on a CLOSED TREE 2012-06-20 15:48:02 +01:00
Aryeh Gregor
86868fc020 Bug 762183 part 5 - Fix misleading comments/variable names; r=ehsan 2012-06-13 18:38:05 +03:00
Aryeh Gregor
fffc836614 Bug 762183 part 4 - Fix assertion in DeleteTextTxn::Init; r=ehsan 2012-06-12 19:05:27 +03:00
Aryeh Gregor
0c2d896d87 Bug 762183 part 3 - Clean up some nsEditor methods; r=ehsan 2012-06-12 18:44:44 +03:00
Aryeh Gregor
0f98a6744a Bug 762183 part 1 - Clean up DeleteTextTxn; r=ehsan 2012-06-08 12:58:29 +03:00
Aryeh Gregor
24223d582e Bug 763283 part 2 - Use nsINode::AsContent() in editor/; r=ehsan 2012-06-10 15:39:21 +03:00
Ryan VanderMeulen
846a6a41bf Merge m-c to inbound 2012-06-10 17:59:00 -04:00
Olli Pettay
94414ed431 Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst 2012-06-10 21:14:30 +03:00
Aryeh Gregor
8e7de01930 Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan
--HG--
rename : layout/generic/nsTypedSelection.h => layout/generic/Selection.h
2012-06-08 17:20:55 +03:00
Aryeh Gregor
729b83a781 Bug 757771 part 3 - Include nsRange.h from nsTypedSelection.h 2012-06-07 18:00:58 +03:00
Ehsan Akhgari
ccdd37d975 Merge mozilla-central into mozilla-inbound 2012-06-06 12:46:50 -04:00
Ms2ger
c433fcf3a7 Bug 761297 - Followup: Fix build warning in opt builds. 2012-06-06 12:34:46 +02:00
Ms2ger
c839dab25b Bug 761308 - Part b: Cleanup CreateElementTxn::DoTransaction(); r=ehsan 2012-06-06 09:41:51 +02:00
Ms2ger
02dd71b0e0 Bug 761308 - Part a: Remove unnecessary assertion from CreateElementTxn::Init(); r=ehsan 2012-06-06 09:41:46 +02:00
Ms2ger
080258f023 Bug 761299 - Cleanup DeleteRangeTxn::CreateTxnsToDeleteBetween; r=ehsan 2012-06-06 09:41:41 +02:00
Ms2ger
9e0655e82a Bug 761297 - Simplify debug code in DeleteRangeTxn::Init; r=ehsan 2012-06-06 09:41:35 +02:00
Ms2ger
83ea677991 Bug 761296 - Cleanup InsertElementTxn::DoTransaction; r=ehsan 2012-06-06 09:41:30 +02:00
Ms2ger
dda6a05a4e Bug 761288 - Cleanup JoinElementTxn::DoTransaction; r=ehsan 2012-06-06 09:41:22 +02:00
Ms2ger
a9fb7b8118 Bug 756748 - Use nsIAtom and nsINode in nsHTMLEditRules::ConvertListType; r=ehsan 2012-06-06 09:36:46 +02:00
Ms2ger
5dac235475 Bug 756758 - Use nsINode in nsEditor::ReplaceContainer; r=ehsan 2012-06-06 09:36:33 +02:00
Ms2ger
1f2895743b Bug 756754 - Part b: Use nsINode in nsEditor::InsertContainerAbove; r=ehsan 2012-06-06 09:36:12 +02:00
Ms2ger
fade6304fe Bug 756753 - Simplify nsHTMLEditRules::LookInsideDivBQandList, nsEditor::CountEditableChildren; r=ehsan 2012-06-06 09:36:07 +02:00
Ms2ger
344a01487d Bug 756750 - Cleanup nsEditor::RemoveContainer; r=ehsan 2012-06-06 09:35:54 +02:00
Ms2ger
b263aba754 Bug 756754 - Part a: Return dom::Element* from CreateHTMLContent; r=ehsan 2012-06-06 09:35:47 +02:00
Aryeh Gregor
358c88c0cb Bug 760143 - Get rid of useless nsresult in editor/; r=ehsan 2012-06-01 14:03:17 +03:00
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
Laurent Dulary
7b00eb233d Bug 657938 (1/2) - Implement the content part of the meter element. f=mounir r=smaug,mrbkap 2012-05-16 13:18:33 +02: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