Commit Graph

2223 Commits

Author SHA1 Message Date
Michael Layzell
1e81219f05 Bug 309731 - Allow document.execCommand('inserthtml') with an empty string parameter. r=ehsan 2015-05-14 08:02:00 -04:00
Ms2ger
02935399a5 Bug 1145395 - Introduce an overload of nsHTMLEditor::RemoveStyleInside that takes nsIContent&; r=ehsan 2015-05-13 17:58:26 +02:00
Ms2ger
e1b1c18b59 Bug 1145395 - Pass Element& to nsHTMLEditor::RemoveElementIfNoStyleOrIdOrClass; r=ehsan 2015-05-13 17:58:25 +02:00
Ms2ger
f402d96073 Bug 1145395 - Introduce an overload of nsHTMLEditor::SelElementPosition that takes an Element; r=ehsan 2015-05-13 17:58:25 +02:00
Ms2ger
d457a0c0ab Bug 1145395 - Call nsINode::Length directly in nsHTMLEditor::CreateDOMFragmentFromPaste; r=ehsan 2015-05-13 17:58:25 +02:00
Ms2ger
4887070f14 Bug 1145395 - Pass nsINode& to RemoveBodyAndHead in nsHTMLDataTransfer; r=ehsan 2015-05-13 17:58:25 +02:00
Ms2ger
67ffa2b447 Bug 1145395 - Pass nsIContent& to nsHTMLEditor::StripFormattingNodes; r=ehsan 2015-05-13 17:58:25 +02:00
Ms2ger
a0d89be92b Bug 1145395 - Use the local fragment variable rather than *outFragNode; r=ehsan 2015-05-13 17:58:25 +02:00
Ms2ger
f335a83ac9 Bug 1145395 - Return a DocumentFragment from nsHTMLEditor::ParseFragment; r=ehsan 2015-05-13 17:58:25 +02:00
Ms2ger
ac695b52bd Bug 1145395 - Make some cosmetic improvements to nsHTMLEditor::CreateDOMFragmentFromPaste; r=ehsan 2015-05-13 17:58:25 +02:00
Jorg K
ba4595d8aa Bug 1140617 - Don't clear inline style when pasting image. r=ehsan 2015-05-06 16:15:00 +02:00
Kartikaya Gupta
4977bd28c8 Bug 1163640 - Fix the test for bug 417418 to not leave the widget in a drag session. r=ehsan 2015-05-11 17:21:30 -04:00
Jan Horak
c5dad176b5 Bug 967494 - "Preference Composition/Spelling/Language is ignored, and changing spellcheck language in one composition window affects all open and new compositions" [r=ehsan] 2015-04-28 12:01:00 +03:00
Ehsan Akhgari
2c9e11f05b Bug 1162823 - Do not treat non-Latin words as misspelled; r=ekanan 2015-05-08 22:45:16 -04:00
Anthony Tseng
96161fc227 Bug 1158425 - Rename _SYNTH event names. r=smaug 2015-05-01 22:06:00 -04:00
Ehsan Akhgari
889a42a694 Bug 1158837 - Ensure the start and end nodes are non-null before using them. r=roc 2015-04-29 18:35:00 -04:00
Mike Hommey
b673a97a25 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Ehsan Akhgari
71a9fd95c6 Bug 1158651 - Correctly ignore non-editable nodes in nsHTMLEditRules::GetParagraphFormatNodes; r=roc 2015-04-27 21:13:10 -04:00
Boris Zbarsky
f21de90e5b Bug 1158452. Pass in the right node when messing with font sizes in editor. r=ehsan 2015-04-27 15:29:22 -04:00
Ehsan Akhgari
bb5762dcf6 Bug 1158920 - Yield to the event loop before reading the spelling suggestions 2015-04-27 15:09:22 -04:00
Boris Zbarsky
7f61a6b625 Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky
84a1df27d6 Bug 1157898 part 3. Fix the remaining consumers of rv.ErrorCode() in NS_ENSURE_* expressions to not do that. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky
81b0818981 Bug 1157898 part 2. Make code of the form "NS_ENSURE_SUCCESS(rv.ErrorCode(), rv.ErrorCode());" use Failed and StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/NS_ENSURE_SUCCESS\(([a-zA-Z0-9]+)\.ErrorCode\(\), \1.ErrorCode\(\)\);/NS_ENSURE_TRUE(!\1.Failed(), \1.StealNSResult());/'
2015-04-27 09:18:52 -04:00
Boris Zbarsky
ef887403cb Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Jorg K
277c6d9d9b Bug 1140105 - Can't query for a specific font face when the selection is collapsed. r=ehsan 2015-04-24 05:57:00 -04:00
David Anderson
e00d8cbb9c Mark unaccelerated antialiasing reftest failures with APZ as fuzzy. (bug 1157716, r=mstange)
With APZ, we always layerize the first scrollable element of the page,
if the page itself is not scrollable. These additional layers can cause
fuzzy reftest failures in two ways: differences in blending, and by
disabling sub-pixel test anti-aliasing. The latter is only a problem
with unaccelerated drawing, because we don't support component alpha
layers with BasicLayers. (We also don't support them with
BasicCompositor, but "Reftest unaccelerated" only tests BasicLayers).
2015-04-24 10:13:32 -04:00
Aryeh Gregor
60e79c4b89 Bug 1154701 part 14 - Remove unused nsCOMArray cruft; r=ehsan 2015-04-24 14:27:36 +03:00
Aryeh Gregor
a916810d05 Bug 1154701 part 13 - Clean up nsHTMLEditor::SetCSSBackgroundColor; r=ehsan 2015-04-24 14:27:36 +03:00
Aryeh Gregor
86e6d15d10 Bug 1154701 part 12 - Switch nsEditor::mDocStateListeners to nsTArray; r=ehsan 2015-04-24 14:27:36 +03:00
Aryeh Gregor
ea5607b0ca Bug 1154701 part 11 - Switch nsEditor::mEditorObservers to nsTArray; r=ehsan 2015-04-24 14:27:36 +03:00
Aryeh Gregor
a1cad73224 Bug 1154701 part 10 - Switch nsEditor::mActionListeners to nsTArray; r=ehsan 2015-04-24 14:27:36 +03:00
Aryeh Gregor
1b16335f84 Bug 1154701 part 9 - Clean up nsHTMLEditor::RelativeFontChange; r=ehsan 2015-04-24 14:27:36 +03:00
Aryeh Gregor
34c6f87a69 Bug 1154701 part 8 - Clean up nsHTMLEditor::SetInlinePropertyOnNode; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
88ee1a586a Bug 1154701 part 7 - Clean up nsHTMLEditor::SetInlineProperty; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
da919a24a7 Bug 1154701 part 6 - Clean up nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
d51b3753fb Bug 1154701 part 5 - Switch nsHTMLEditor::objectResizeEventListeners to nsTArray; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
72b0851116 Bug 1154701 part 4 - Switch nsHTMLEditor::mContentFilters to nsTArray; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
20b262efef Bug 1154701 part 3 - Clean up nsHTMLEditor::GetListAndTableParents, DiscoverPartialListsAndTables, ScanForListAndTableStructure, ReplaceOrphanedStructure; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
a77452b4a0 Bug 1154701 part 2 - Use more OwningNonNull in editor; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
00ccfa3b70 Bug 1154701 part 1 - Clean up nsHTMLEditor::CreateListOfNodesToPaste; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
1c057d492f Bug 1153629 part 12 - Clean up nsHTMLEditRules::RemoveEmptyNodes; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
fc151756f2 Bug 1153629 part 11 - Clean up nsHTMLEditRules::AdjustSpecialBreaks; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
8ebaae647c Bug 1153629 part 10 - Clean up nsHTMLEditRules::AlignInnerBlocks; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
e53a3494dd Bug 1153629 part 9 - Clean up nsHTMLEditRules::MakeTransitionList; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
699717093d Bug 1153629 part 8 - Clean up nsHTMLEditRules::ApplyBlockStyle; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
95b4f74b17 Bug 1153629 part 7 - Clean up nsHTMLEditRules::RemoveBlockStyle, RemovePartOfBlock; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
180730d7f9 Bug 1153629 part 6 - Clean up nsHTMLEditRules::MakeBlockquote; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
3f06c3d62c Bug 1153629 part 5 - Clean up nsHTMLEditRules::GetChildNodesForOperation; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
a4e081470a Bug 1153629 part 4 - Clean up nsHTMLEditRules::ListIsEmptyLine; r=ehsan 2015-04-24 14:27:35 +03:00
Aryeh Gregor
a9c9700557 Bug 1153629 part 3 - Clean up nsHTMLEditRules::GetNodesFromPoint; r=ehsan 2015-04-24 14:27:35 +03:00