Commit Graph

5943 Commits

Author SHA1 Message Date
Aryeh Gregor
337061262c Bug 773262 - Re-add SetMaxTransactionCount call incorrectly removed by bug 765595 part 2; r=ehsan 2012-07-15 09:11:47 +03:00
Aryeh Gregor
dde10d9130 Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor
8f686980ed Bug 771994 - Make nsRangeStore refcounted; r=ehsan 2012-07-13 09:31:15 +03:00
Makoto Kato
9d8f7a0477 Bug 772327 - Password mask timer is too short on Android. r=blassy 2012-07-13 11:26:20 +09:00
Sankha Narayan Guria
5c0fdeafbc Bug 770812 - Remove nsIEditorSupport; r=ehsan 2012-07-11 18:06:02 -04:00
Aryeh Gregor
ba18dba95d Bug 772282 - Hold on to nodes when we delete them in nsEditor::MoveNode; r=ehsan 2012-07-11 10:51:13 +03:00
Ehsan Akhgari
17c9f6bfc7 Bug 772346 - Hold a strong ref to the child node in nsHTMLEditRules::DeleteNonTableElements; r=roc
--HG--
extra : rebase_source : 45e35f3c2ce9513a3e48fb801403ff59c0562412
2012-07-10 16:06:48 -04:00
Aryeh Gregor
6e530b797a Bug 771983 - Re-add non-debug null check to nsEditor::GetNodeLocation; r=ehsan 2012-07-10 09:53:59 +03:00
Aryeh Gregor
6ef3102fab Bug 771435 - Fix nsEditor::DoTransaction to use transaction interfaces sanely; r=ehsan 2012-07-09 11:41:47 +03:00
Aryeh Gregor
aee28e1eec Bug 771749 - Fix dangling pointer in nsEditor::RemoveContainer; r=ehsan 2012-07-09 11:41:47 +03:00
Ryan VanderMeulen
8b9c9fea4d Merge m-c to inbound. 2012-07-09 20:53:11 -04:00
Olli Pettay
0d5a22dbad Bug 771961, fix a regression from Bug 756750, r=ehsan 2012-07-09 23:52:31 +03:00
Luqman Aden
cecabe4d0b Bug 770814 - Make nsEditor::GetNodeLocation return already_AddRefed<nsIDOMNode> instead of having it as an out param; r=ehsan 2012-07-08 20:45:12 -04:00
Aryeh Gregor
faab82fdb9 Bug 767169 part 3 - Use script runner for nsHTMLEditor::ResetRootElementAndEventTarget; r=ehsan,bz 2012-07-05 10:45:08 +03:00
Nathan Froyd
bfff055672 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Makoto Kato
1e533fbd2e Bug 769533 - Part 1. Replace AppendWithConversion with others. r=jlebar 2012-07-06 18:43:28 +09:00
Aryeh Gregor
84043538aa Bug 765595 part 4 - Make nsEditor::DoAfter*Transaction infallible; r=ehsan 2012-07-05 10:45:09 +03:00
Aryeh Gregor
893511b6d3 Bug 765595 part 3 - Make PeekUndoStack/PeekRedoStack infallible; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
538ef8bff3 Bug 765595 part 2 - De-COMtaminate nsEditor::mTxnMgr; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
2f08b098d4 Bug 765595 part 1 - Clean up nsEditor::DoTransaction; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
011593c531 Bug 766025 - Remove incorrect assert in DeleteTextTxn::Init; r=ehsan 2012-06-19 16:21:48 +03:00
Aryeh Gregor
0f1a142f1f Bug 769967 part 5 - Don't special-case -moz-user-select: all elements for deletion; r=ehsan 2012-07-02 16:25:33 +03:00
Aryeh Gregor
6730a45887 Bug 767684 Test to prevent regression from bug 752210 happening again r=ehsan 2012-07-05 21:35:10 +01:00
Neil Rashbrook
48d78929e8 Bug 767684 Fix regression from bug 752210 r=ehsan 2012-07-05 21:33:10 +01:00
Aryeh Gregor
c8f2fb5da8 Backed out changeset f49e52ee86f3, insufficient review 2012-07-05 11:51:18 +03:00
Aryeh Gregor
df8b2779c0 Bug 767169 part 3 - Use script runner for nsHTMLEditor::ResetRootElementAndEventTarget; r=ehsan 2012-07-05 10:45:08 +03:00
Aryeh Gregor
08153a5509 Bug 768765 - Fix assert in nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-07-02 16:31:49 +03:00
Aryeh Gregor
d2f874145e Bug 769967 part 4 - Rename DeleteElementTxn to DeleteNodeTxn; r=ehsan
--HG--
rename : editor/libeditor/base/DeleteElementTxn.cpp => editor/libeditor/base/DeleteNodeTxn.cpp
rename : editor/libeditor/base/DeleteElementTxn.h => editor/libeditor/base/DeleteNodeTxn.h
2012-06-19 16:23:36 +03:00
Aryeh Gregor
02efbdae7e Bug 769967 part 3 - Clean up DeleteElementTxn and nsEditor::DeleteNode; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
b24ebc320a Bug 769967 part 2 - Clean up nsEditor::GetNodeLocation; r=ehsan 2012-07-02 15:07:57 +03:00
Aryeh Gregor
334bc2c035 Bug 769967 part 1 - Clean up nsEditor::GetChildOffset; r=ehsan 2012-07-02 14:42:19 +03:00
Aryeh Gregor
2760d35ada Bug 768748 part 2 - Rewrite nsHTMLEditRules::GetPromotedPoint; r=ehsan 2012-07-01 14:53:45 +03:00
Aryeh Gregor
37d4deed65 Bug 768748 part 1 - Clean up nsHTMLEditor::IsNext/PrevCharWhitespace; r=ehsan 2012-07-01 14:07:16 +03:00
Ehsan Akhgari
b6ed51525d Merge backout of DLBI from mozilla-central 2012-07-03 20:53:08 -04:00
Ehsan Akhgari
2f49b0a7cb Bug 330868 - Fall back to assuming that we have retrieved HTML data from the clipboard if it lies to us saying that it has returned CF_HTML; r=roc 2012-07-03 20:44:46 -04:00
Ehsan Akhgari
d49b18b800 Backout changeset e04abde1b323 (bug 539356) because of performance and correctness regressions 2012-07-03 20:21:03 -04:00
Ehsan Akhgari
f68073972a Backed out changeset 0f1a8f17bfdf because the patch was not reviewed! 2012-07-03 18:04:35 -04:00
Ehsan Akhgari
4bcedc8b20 Bug 330868 - Fall back to assuming that we have retrieved HTML data from the clipboard if it lies to us saying that it has returned CF_HTML; r=roc 2012-07-03 18:03:22 -04:00
Ed Morley
eff0157441 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-02 10:03:16 +01:00
Ms2ger
e79f400ca1 Bug 770013 - Cleanup NodeIsBlockStatic/IsBlockNode a bit; r=ehsan 2012-07-01 21:53:16 +02:00
David Zbarsky
d2ee12f6f9 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Ekanan Ketunuti
52e00ef49e Bug 769913 - TestTXMgr.cpp should use fail() from TestHarness.h; r=ehsan 2012-06-30 23:56:18 +07:00
Aryeh Gregor
6ee6340887 Bug 767169 part 2 - Handle lastCandidate being null in nsContentSubtreeIterator::Init; r=bz 2012-06-28 14:29:56 +03:00
Ehsan Akhgari
8fce806592 Bug 769008 - Don't pass a null node to GetBlockNodeParent; r=roc 2012-06-29 18:43:08 -04:00
Matt Woodrow
dbef6fe311 Bug 539356 - Part 10 - Test changes required for DLBI. r=roc 2012-06-30 15:06:11 +12:00
Ehsan Akhgari
f4b598bf08 Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
This patch does the following:

* It adds nsITransferable::Init(nsILoadContext*).  The load context
  might be null, which means that the transferable is non-private, but
  if it's non-null, we extract the boolean value for the privacy mode
  and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
  called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
  represent the document that the string is coming from.
  nsIClipboardHelper implementation internally gets the nsILoadContext
  from that and passes it on to the transferable upon creation.  The
  reason that I did this was that nsIClipboardHelper is supposed to be a
  high-level helper, and in most of its call sites, we have easy access
  to a document object.
* It modifies all of the call sites of the above interfaces according to
  this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
  the call sites.
2012-04-16 22:14:01 -04:00
Aryeh Gregor
0ef6c7ac61 Bug 766845 part 3 - Fix assertion in DeleteRangeTxn; r=ehsan,surkov 2012-06-25 14:44:40 +03:00
Aryeh Gregor
5a1fadd0f3 Bug 766845 part 1 - Clean up DeleteRangeTxn; r=ehsan 2012-06-25 13:22:49 +03:00
Jonathan Watt
970e60a384 Bug 767388 - Kill NS_DEBUG. r=bz.
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Aryeh Gregor
5bf554f757 Bug 766387 - Make editing commands disabled in more cases; r=ehsan 2012-06-24 17:39:11 +03:00
Aryeh Gregor
f2d09a9ab6 Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-06-21 15:54:26 +03:00
Aryeh Gregor
4b464cdfe8 Bug 760052 - execCommand() should abort and return false for disabled commands; r=ehsan 2012-06-21 15:05:24 +03:00
Aryeh Gregor
fc3e370c45 Back out bac4434b31d2 for test failures 2012-06-24 10:30:34 +03:00
Aryeh Gregor
4a8e23b2fa Back out 66b3801292a0 for test failures 2012-06-24 10:30:13 +03:00
Aryeh Gregor
e39ea69f36 Bug 766795 - Fix asserts when placing cursor in editable detached content; r=roc,ehsan 2012-06-24 09:54:43 +03:00
Aryeh Gregor
17b1cc73b7 Bug 766387 - Make editing commands disabled in more cases; r=ehsan 2012-06-24 09:54:43 +03:00
Aryeh Gregor
c733224e5b Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-06-21 15:54:26 +03:00
Aryeh Gregor
a080ba2162 Bug 766305 - WSFragment should use PRInt32 for offsets, not PRInt16; r=ehsan 2012-06-24 09:54:42 +03:00
Aryeh Gregor
1fbd2c5dd6 Bug 766413 - Fix crash in nsEditor::CreateTxnForDeleteInsertionPoint; r=ehsan on a CLOSED TREE 2012-06-20 15:48:02 +01:00
Mike Hommey
b95d1d1421 Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Ms2ger
abe520efbe Bug 761997 - Cleanup nsHTMLEditRules::GetListItemState / nsHTMLEditRules::GetDefinitionListItemTypes; r=ehsan 2012-06-17 10:11:16 +02:00
Mike Hommey
cc362780fd Backout changeset a81526647059 and 560c492f81ad (bug 616262) because of Windows Moth perma-orange 2012-06-15 15:50:24 +02:00
Ed Morley
e76a671d8e Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-06-15 13:32:55 +01:00
Mike Hommey
bda3a28b5d Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo 2012-06-04 08:30:26 +02:00
Aryeh Gregor
acf1c05549 Bug 763283 part 2 - Use nsINode::AsContent() in editor/; r=ehsan 2012-06-10 15:39:21 +03:00
Ed Morley
865fc92be0 Backout 61fd66629c4f, 7c8121f8d3af & 2a2e9cf8fd41 (bug 539356), e31a5e6545d3 (bug 761884), 85fa80bd9792, a284ccb25b83, 2865904db9fc, 34e07b09c426, e9b3d41e0360, cef00ebcd6c8, f943b729ac14 & 783f298401b6 (bug 539356), 330a086f1570 (bug 741682), d80219c8842c (bug 739671), e8c96b4fd4da, 313af486e68d, 0adc41ff56dc, 0cd288a38085, f1d43208825c, 4859876972f3, eec8ef3ebe48, f7f29fcd1845, 6079b229d306, f23c3a7e7ce0, 9824458a41e2 & 6748b5496059 (bug 539356) for mochitest-4 orange & talos regressions on multiple platforms 2012-06-11 10:08:32 +01:00
Matt Woodrow
4aed5034c9 Bug 539356 - Part 10 - Test changes required for DLBI. r=roc 2012-06-11 16:45:38 +12:00
Ryan VanderMeulen
0798422bbf Merge m-c to inbound 2012-06-10 17:59:00 -04:00
Olli Pettay
e160cfea86 Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst 2012-06-10 21:14:30 +03:00
Aryeh Gregor
68635d8335 Bug 762183 part 5 - Fix misleading comments/variable names; r=ehsan 2012-06-13 18:38:05 +03:00
Aryeh Gregor
9fb0b21c5b Bug 762183 part 4 - Fix assertion in DeleteTextTxn::Init; r=ehsan 2012-06-12 19:05:27 +03:00
Aryeh Gregor
59460117c0 Bug 762183 part 3 - Clean up some nsEditor methods; r=ehsan 2012-06-12 18:44:44 +03:00
Aryeh Gregor
1ad3bff253 Bug 762183 part 1 - Clean up DeleteTextTxn; r=ehsan 2012-06-08 12:58:29 +03:00
Aryeh Gregor
7737d5d63f 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
Henri Sivonen
75302aed58 Bug 750096. r=bzbarsky. 2012-06-14 09:14:47 +03:00
Ehsan Akhgari
97dfc24320 Bug 761051 - Use image/jpeg as the standard internal transferable image type, but continue respecting image/jpg as well; r=roc 2012-06-07 19:27:07 -04:00
Ehsan Akhgari
3010661bb0 Backout changeset 125438dda903 (bug 761051) because of Bq bustage 2012-06-07 19:49:37 -04:00
Ehsan Akhgari
b68ab964cb Bug 761051 - Use image/jpeg as the standard internal transferable image type, but continue respecting image/jpg as well; r=roc 2012-06-07 19:27:07 -04:00
Aryeh Gregor
8f33d48265 Bug 762430 - Fix uninitialized nsresult in nsHTMLEditor::AbsolutelyPositionElement; r=ehsan 2012-06-07 18:00:58 +03:00
Aryeh Gregor
19175c3318 Bug 757771 part 4 - Create new nsContentUtils::GetSelectionInTextControl method; r=ehsan 2012-06-07 18:00:58 +03:00
Aryeh Gregor
3bea0fda01 Bug 757771 part 3 - Include nsRange.h from nsTypedSelection.h 2012-06-07 18:00:58 +03:00
Aryeh Gregor
c7fb4c0759 Bug 757771 part 2 - Change various callers to use nsTypedSelection; r=ehsan 2012-06-05 11:10:26 +03:00
Ed Morley
d1b860bd10 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-06-07 10:32:36 +01:00
Aryeh Gregor
ed2695928a Bug 761861 - Fix crash in nsHTMLEditor::DeleteSelectionImpl; r=ehsan 2012-06-06 14:19:16 +03:00
Ehsan Akhgari
1261bc9326 Merge mozilla-central into mozilla-inbound 2012-06-06 12:46:50 -04:00
Ms2ger
ae5b3e7557 Bug 761297 - Followup: Fix build warning in opt builds. 2012-06-06 12:34:46 +02:00
Ms2ger
5f4ed964fb Bug 761306 - Make nsInsertTagCommand::mTagName an nsIAtom*; r=ehsan 2012-06-06 09:42:01 +02:00
Ms2ger
4ba3d51690 Bug 761313 - Simplify nsHTMLEditRules::RemoveBlockStyle; r=ehsan 2012-06-06 09:41:56 +02:00
Ms2ger
bc1f580a59 Bug 761308 - Part b: Cleanup CreateElementTxn::DoTransaction(); r=ehsan 2012-06-06 09:41:51 +02:00
Ms2ger
da2de36ea8 Bug 761308 - Part a: Remove unnecessary assertion from CreateElementTxn::Init(); r=ehsan 2012-06-06 09:41:46 +02:00
Ms2ger
0f088b5526 Bug 761299 - Cleanup DeleteRangeTxn::CreateTxnsToDeleteBetween; r=ehsan 2012-06-06 09:41:41 +02:00
Ms2ger
54fa2b7140 Bug 761297 - Simplify debug code in DeleteRangeTxn::Init; r=ehsan 2012-06-06 09:41:35 +02:00
Ms2ger
62daf99946 Bug 761296 - Cleanup InsertElementTxn::DoTransaction; r=ehsan 2012-06-06 09:41:30 +02:00
Ms2ger
f0c0eabede Bug 761288 - Cleanup JoinElementTxn::DoTransaction; r=ehsan 2012-06-06 09:41:22 +02:00
Ms2ger
ac22629f85 Bug 756819 - Use dom::Element for the result of GetElementParent; r=ehsan 2012-06-06 09:36:52 +02:00
Ms2ger
48c4041fde Bug 756748 - Use nsIAtom and nsINode in nsHTMLEditRules::ConvertListType; r=ehsan 2012-06-06 09:36:46 +02:00
Ms2ger
a763f9e8c3 Bug 756758 - Use nsINode in nsEditor::ReplaceContainer; r=ehsan 2012-06-06 09:36:33 +02:00
Ms2ger
5861fba1f4 Bug 756757 - Use nsINode in nsHTMLEditor::MergeCells; r=ehsan 2012-06-06 09:36:28 +02:00
Ms2ger
3c70068c94 Bug 756756 - Cleanup nsTextServicesDocument::GetCollapsedSelection; r=ehsan 2012-06-06 09:36:23 +02:00
Ms2ger
aed7e8aaa1 Bug 756755 - Cleanup nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan 2012-06-06 09:36:17 +02:00
Ms2ger
8f1d0d1be9 Bug 756754 - Part b: Use nsINode in nsEditor::InsertContainerAbove; r=ehsan 2012-06-06 09:36:12 +02:00
Ms2ger
8c278ddf71 Bug 756753 - Simplify nsHTMLEditRules::LookInsideDivBQandList, nsEditor::CountEditableChildren; r=ehsan 2012-06-06 09:36:07 +02:00
Ms2ger
245ac28ce6 Bug 756752 - Remove nsHTMLEditor::IsContainer(nsINode*); r=ehsan 2012-06-06 09:36:00 +02:00
Ms2ger
defa6dba2a Bug 756750 - Cleanup nsEditor::RemoveContainer; r=ehsan 2012-06-06 09:35:54 +02:00
Ms2ger
55cac76b93 Bug 756754 - Part a: Return dom::Element* from CreateHTMLContent; r=ehsan 2012-06-06 09:35:47 +02:00
Aryeh Gregor
101bf90613 Bug 760143 - Get rid of useless nsresult in editor/; r=ehsan 2012-06-01 14:03:17 +03:00
Aryeh Gregor
18b6bfc148 Bug 757371 part 4 - Do not insert style tags if the style is already applied; r=ehsan 2012-05-23 10:49:29 +03:00
Aryeh Gregor
0d9f5e832b Bug 757371 part 3 - Reuse existing style elements more aggressively; r=ehsan 2012-05-29 10:12:51 +03:00
Aryeh Gregor
4cad3af933 Bug 757371 part 2 - Improve correctness of nsHTMLCSSUtils::IsCSSEquivalentToHTMLInlineStyleSet; r=ehsan 2012-05-28 14:20:27 +03:00
Aryeh Gregor
d77f45134f Bug 757371 part 1 - Clean up nsHTMLEditRules::ReapplyCachedStyles; r=ehsan 2012-05-22 13:15:09 +03:00
Ehsan Akhgari
42d2024d3a Bug 760583 - Null check the selection parameter passed to WillDoAction properly; rs=mconley 2012-06-01 16:36:09 -04:00
Mats Palmgren
e8a169f580 Bug 760080 - Use info() for log messages that aren't tests. Move SimpleTest.finish() last. r=ehsan 2012-06-01 20:52:37 +02:00
Aryeh Gregor
cb7aa11c0d Bug 759748 - Crash in nsHTMLEditRules::WillDoAction; r=ehsan 2012-05-31 21:23:07 +03:00
Aryeh Gregor
6f4ed9a285 Bug 748307 part 5 - Support insertText, forwardDelete, insertParagraph per spec; r=ehsan 2012-05-22 12:37:17 +03:00
Aryeh Gregor
3163c8b65f Bug 748307 part 3 - Clean up WillDoAction; r=ehsan 2012-05-22 12:37:17 +03:00
Aryeh Gregor
6d1d67ffa0 Bug 748307 part 2 - Make WillDoAction take an nsTypedSelection; r=ehsan 2012-05-22 12:37:17 +03:00
Aryeh Gregor
aea5e1e969 Bug 748307 part 1 - Make TypedText's second argument a named enum; r=ehsan 2012-05-22 12:37:17 +03:00
Ehsan Akhgari
ef2894de82 Bug 741216 - Allow dropping files into the file picker control; r=bzbarsky 2012-04-02 16:25:09 -04:00
Laurent Dulary
9190e002a9 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
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Aryeh Gregor
e8bb3212b3 Bug 742240 - Handle unsupported commands per spec in execCommand/queryCommand*; r=ehsan 2012-04-15 15:57:20 +03:00
Ms2ger
81cb351df1 Merge m-c to m-i. 2012-05-18 13:32:20 +02:00
Ms2ger
1cf9cefdbe Bug 755314 - Make nsBaseStateUpdatingCommand::mTagName an nsIAtom*; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
70e0a918a6 Bug 754228 - nsBaseStateUpdatingCommand::{ToggleState,GetCurrentState} shouldn't have an aTagName argument; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
9d1522ebbc Bug 755311 - Simplify SetDocTitleTxn::SetDomTitle; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
a03ec842c1 Bug 755310 - Use nsINode::Length() in nsEditor::CreateTxnForDeleteInsertionPoint; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
415612279e Bug 755264 - Use nsINode in nsHTMLEditRules::DeleteNonTableElements; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
29df2a8512 Bug 755243 - Use nsINode in nsHTMLEditRules::AppendInnerFormatNodes; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
5157bda3c8 Bug 755204 - Use nsINode::GetChildCount() in nsHTMLEditRules::MakeSureElemStartsOrEndsOnCR; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
150ffe653b Bug 755202 - Simplify GetChildNodesForOperation; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
feba9c5092 Bug 755200 - Simplify SetSelectionAroundHeadChildren; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
533e5d71a6 Bug 752253 - Remove nsEditor::GetIndexOf; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
5f81b0b912 Bug 752210 - Part c: Use nsIContent in nsHTMLEditor::RelativeFontChange; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
78dc64b94a Bug 752210 - Part b: Use nsIContent in nsHTMLEditor::RelativeFontChangeOnNode; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
226f3d597f Bug 752210 - Part a: Use nsIContent in nsHTMLEditor::RelativeFontChangeHelper; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
f62ee8eedc Bug 752209 - Use nsINode::GetChildCount() in nsHTMLEditor::AbsolutelyPositionElement; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
6e9c3f61f4 Bug 750053 - Part b: Stop using nsISelection::GetIsCollapsed in editor/libeditor; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
d22ffba672 Bug 752203 - Cleanup nsEditor::NodesSameType; r=ehsan 2012-05-18 10:29:38 +02:00
Ms2ger
6d340b14a2 Bug 752045 - Handle document fragments correctly in *CanContain* methods; r=ehsan 2012-05-18 10:29:38 +02:00
Aryeh Gregor
cc44c815c7 Bug 590640 part 7 - Preserve type-in state when performing block commands; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor
50071307e5 Bug 590640 part 6 - Don't create empty style tags unless we're about to insert text in them; r=ehsan 2012-05-10 15:00:14 +03:00
Aryeh Gregor
9684492a4a Bug 590640 part 5 - Delete empty wrappers when we delete the selection; r=ehsan 2012-05-10 17:54:33 +03:00
Aryeh Gregor
dfcd7c77a2 Bug 590640 part 3 - Remove unnecessary use of NodeIsTypeString; r=ehsan 2012-05-09 12:45:23 +03:00
Aryeh Gregor
31b4f25d98 Bug 590640 part 2 - Remove dead code; r=ehsan 2012-05-09 12:45:21 +03:00
Aryeh Gregor
828444281e Bug 590640 part 1 - Clean up some nsHTMLEditRules methods; r=ehsan 2012-05-09 08:24:07 +03:00
Aryeh Gregor
8e52d8b627 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
Joel Maher
1907a8d015 Bug 754001 - random-if r3 failures so we can unhide the tests. r=jrmuizel 2012-05-14 10:19:28 -04:00
Ehsan Akhgari
8c7678eb6d Bug 754292 - Make spellcheck-textarea-ref.html blur its contents so that we would test the right thing; r=roc 2012-05-11 11:39:38 -04:00
Ehsan Akhgari
83f6bc7db4 Bug 753233 - Make the spell checker aware of data: URIs; r=roc 2012-05-09 16:15:52 -04:00
Ehsan Akhgari
8b7988e945 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