Commit Graph

7311 Commits

Author SHA1 Message Date
Masayuki Nakano
581b9986bb Bug 1278014 part.3 Define 2 constants for number of SelectionType and number of SelectionType except "none" r=smaug
This patch defines two constants kSelectionTypeCount and kPresentSelectionTypeCount.  The former is same as nsISelectionController::NUM_SELECTIONTYPES.  The latter is kSelectionTypeCount - 1 for excluding SELECTION_NONE.  The latter is useful in some loops which handle all selection types except SELECTION_NONE.

Note that this patch fixes a bug of nsFrameSelection.  That doesn't treat SELECTION_NONE as a selection (see the definition of index), however, it defines redundant item and doesn't use it actually.  Additionally, it computes invalid selection type in each loop.  Therefore, without this patch, debug build hits MOZ_ASSERT() in ToSelectionType(RawSelectionType).

Note that these constants are defined as anonymous enum because we cannot define as const (or static) even with extern.  If we'd try to do it, it caused link error or not available in nsFrameSelection.cpp as constant value since they were not initialized if they were initialized in nsSelection.cpp.  Therefore, these constants are defined as enum items but using "k" prefix.

MozReview-Commit-ID: H6sH7NBEXlE

--HG--
extra : rebase_source : fd517d5fc2e2d5dc2f96313e2802fd1719817af7
2016-06-11 11:12:26 +09:00
Masayuki Nakano
00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Masayuki Nakano
17f667a2e2 Bug 1278014 part.1 Rename SelectionType in nsISelectionController.idl to mozilla::RawSelectionType r=smaug
mozilla::SelectionType will be an enum class. Therefore, we need to rename SelectionType with a word "raw" since it's a type for raw nsISelectionController::SELECTION_*.

MozReview-Commit-ID: K8SO0bbpv0Y

--HG--
extra : rebase_source : 56e3ac852657ef4795d718d2da09b16903c2e66c
2016-06-07 22:42:06 +09:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Carsten "Tomcat" Book
afff301b32 Backed out changeset 5c836acf3197 (bug 906420) on developer request by baku
--HG--
extra : rebase_source : 9f109cdb706feef6d2bcd9a2e71f8c4d3c17ebdf
2016-06-09 15:30:53 +02:00
Makoto Kato
4616a049e9 Bug 1257731 - Part 2. Don't use Win32 API on content process. r=masayuki
On content sandbox process, GetKeyboardState() API doesn't return current keyboard state.  So we shouldn't use it.

MozReview-Commit-ID: 4phnJf0sJFZ

--HG--
extra : rebase_source : ea52839d427431a2ba7624ef199f9842fe12f8ef
extra : histedit_source : f7905715eb4e09a0234b9f7717cec6161150a7f3
2016-06-08 13:23:11 +09:00
Michael Layzell
c1e5ab59b6 Bug 1278412 - Disable warning in nsDeleteCommand::IsCommandEnabled, r=ehsan 2016-06-07 18:07:32 -04:00
Michael Layzell
bd973fcaa4 Bug 906420 - Part 1: Implement DataTransferItem and DataTransferItemList, r=baku 2016-06-07 18:05:55 -04:00
Jet Villegas
6d95828266 merge from inbound 2016-06-04 03:33:38 -07:00
Jet Villegas
a22a6660d7 Bug 1268736: An editable table cell means that both the cell and its contents are children of an editable node. r=mats 2016-06-04 03:23:56 -07:00
Masayuki Nakano
258c1f97d6 Bug 1277756 part.7 Rename TextRangeType::NS_TEXTRANGE_SELECTEDCONVERTEDTEXT to TextRangeType::eSelectedClause r=smaug
MozReview-Commit-ID: GyRYWzfeWrm

--HG--
extra : rebase_source : 8bebacaf675ec4a3cf91cfd434d07beeb7fb1567
2016-06-03 19:15:21 +09:00
Masayuki Nakano
3fa2003d17 Bug 1277756 part.6 Rename TextRangeType::NS_TEXTRANGE_CONVERTEDTEXT to TextRangeType::eConvertedClause r=smaug
MozReview-Commit-ID: 3mexBm278As

--HG--
extra : rebase_source : ef363b0ac50396631e9b145b7e869330509fe259
2016-06-03 19:05:32 +09:00
Masayuki Nakano
98f069e029 Bug 1277756 part.5 Rename TextRangeType::NS_TEXTRANGE_SELECTEDRAWTEXT to TextRangeType::eSelectedRawClause r=smaug
MozReview-Commit-ID: MbG4siLb4Q

--HG--
extra : rebase_source : 23c20c55c3936dc6af5f57414ef7630003480275
2016-06-03 18:57:21 +09:00
Masayuki Nakano
f4254e7f7f Bug 1277756 part.4 Rename TextRangeType::NS_TEXTRANGE_RAWINPUT to TextRangeType::eRawClause r=smaug
MozReview-Commit-ID: KLC1VPiYTdz

--HG--
extra : rebase_source : 3f750e526bb04b26ed66d2c0fada14e7d5b43d73
2016-06-03 18:48:37 +09:00
Masayuki Nakano
6b5425853a Bug 1277756 part.3 Rename TextRangeType::NS_TEXTRANGE_CARETPOSITION to TextRangeType::eCaret r=smaug
MozReview-Commit-ID: CaqmOSxYYU7

--HG--
extra : rebase_source : 5820d491b97be7899150516d05f1426e74dab5b5
2016-06-03 18:40:06 +09:00
Masayuki Nakano
4fc95828b6 Bug 1277756 part.1 Make anonymous enum for NS_TEXTRANGE_* to an enum class named "TextRangeType" r=smaug
For making our code clearer by the stronger type check, we should change the anonymous enum for NS_TEXTRANGE_* to enum class whose name is "TextRangeType" and whose type is "RawTextRangeType" which is an alias of uint8_t.

Additionally, this also adds some utility methods for them.

Note that some lines which are changed by this patch become over 80 characters but it will be fixed by the following patches.

MozReview-Commit-ID: 76izA1WqTkp

--HG--
extra : rebase_source : 27cd8cc8f7f8e82055dbfe82aba94c02beda5fa4
2016-06-04 09:49:21 +09:00
Joel Maher
a6fcbcf0a3 Bug 1270962 - move tests which access the clipboard to subsuite 'clipboard'. r=bgrins,ryanvm,armenzg a=merge
MozReview-Commit-ID: IZziPmwFtHj

--HG--
extra : source : a50249d48b1e86a3749bccc51ece4d1a827a621c
2016-05-25 15:28:24 -04:00
Masayuki Nakano
d7fdaf7cf8 Bug 1272490 nsHTMLEditRules::ReapplyCachedStyles() should do nothing if nsIEditor::GetSelection() returns nullptr r=Ehsan
nsHTMLEditRules::ReapplyCachedStyles() may be called after the document is removed from the DOM tree.  For example, the document can be removed from the tree even during handling an edit operation if the web contents uses DOMMutationEvent. In such case, nsIEditor::GetSelection() returns nullptr and it should do nothing.

MozReview-Commit-ID: Jk3eGalAPhB

--HG--
extra : rebase_source : 54b8eb0ace2c656a68cd8aaf0edd3d1177b127ff
2016-05-17 11:47:39 +09:00
Trevor Saunders
256fff4fc9 bug 1271436 - add nsIDocShell::GetCommandManager() r=smaug 2016-05-17 18:16:07 -04:00
Masayuki Nakano
8a70a17c6a Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug
And mCharCode shouldn't be compared with NS_VK_*, nsIDOMKeyEvent::DOM_VK_*. Additionally, when it's compared with a character constant, cast isn't necessary.

MozReview-Commit-ID: JMT614copjG

--HG--
extra : rebase_source : 69ee3c589e5a71c814ec9a40ac3aab39c789c11d
2016-05-13 16:06:18 +09:00
Masayuki Nakano
3359bad586 Bug 1254755 part.1 Rename WidgetKeyboardEvent::keyCode to WidgetKeyboardEvent::mKeyCode r=smaug
And also WidgetKeyboardEvent::mKeyCode should be compared with NS_VK_* rather than nsIDOMKeyEvent::DOM_VK_*.

MozReview-Commit-ID: IKjQ1nr8XYe

--HG--
extra : rebase_source : 83125cd2523f6b70759f621470aad23b00aae8ae
2016-05-12 17:13:49 +09:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Olli Pettay
43edbfcf37 Bug 1271460, don't leak editor created element objects, r=ehsan
--HG--
extra : rebase_source : a1294b6e57df3a5a85e35e808320bef9e1b0747e
2016-05-13 20:10:22 +03:00
L. David Baron
d097996b85 Bug 1111440 - Replace -moz- prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find . -name "*.css" -exec sed -i -f mozpropsub {} \;
in the root of a mozilla-central tree, with the file mozpropsub
containing the contents:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g

While I didn't manually review all the changes, I did review the list of
files, and manually reviewed the changes in the files that I thought
were more interesting.

Note that there are a few tests that should be fixed up as well, but
I'll do that in a later patch.

MozReview-Commit-ID: EiQTuuV0MNQ
2016-05-12 22:19:58 -07:00
Xidorn Quan
fa7ba2cb82 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : rebase_source : 3c8355f7807982152a16a913b31cbcdd6ef78030
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
f514ed495c Backed out 4 changesets (bug 1269975) for bustage.
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Xidorn Quan
30a6d76b26 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 13:36:25 +10:00
L. David Baron
9ee89fe42f Bug 567283 patch 2 - Rename NS_HexToRGB to NS_HexToRGBA and add parameter saying whether 4 and 8 digit colors are allowed. r=xidorn
This patch tells all callers to use the existing behavior, so it is
intended not to change behavior.  Callers that will be modified in later
patches are marked with "FIXME" comments that will be removed in those
later patches (patches 3 and 4).

MozReview-Commit-ID: FaLryfxaeHv
2016-05-08 22:16:41 -07:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Ting-Yu Lin
c4e4d765b0 Bug 1270030 - Remove "layout.accessiblecaret.extendedvisibility" pref from IMETextTxn. r=mats
The pref had been removed in bug 1249201. Need to clean it up for IMETextTxn.

MozReview-Commit-ID: EaFaN1yzoyP

--HG--
extra : rebase_source : 55da9499245d4d773bbce74e99c013f9814084b4
2016-05-04 17:05:35 +08:00
Eric Rahm
6c9db7a162 Bug 1269047 - Remove chained ENSURE calls from GetStartNodeAndOffset. r=ehsan 2016-05-02 21:25:56 -07:00
Aryeh Gregor
f14f1babe8 Bug 1193762 part 8 - Fix things that will break; r=froydnj
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03:00
Aryeh Gregor
585263dafa Bug 1193762 part 4 - Avoid nsCOMPtr in ternary operator; r=froydnj 2016-05-01 21:29:22 +03:00
Aryeh Gregor
0a025f6cca Bug 1193762 part 3 - Remove nsEditor::IsDescendantOfEditorRoot(nsIDOMNode*); r=ehsan 2016-05-01 17:59:29 +03:00
Aryeh Gregor
419ed0f1bb Bug 1193762 part 2 - Remove nsHTMLEditor::IsVisBreak(nsIDOMNode*); r=ehsan 2016-05-01 17:59:17 +03:00
Aryeh Gregor
9f98b80267 Bug 1193762 part 1 - Remove nsEditor::IsBlockNode(nsIDOMNode*); r=ehsan 2016-05-01 17:59:05 +03:00
Aryeh Gregor
0a569d869c Bug 1191356 part 9 - Convert nsHTMLEditRules::mNewBlock to Element; r=ehsan 2016-05-01 17:58:53 +03:00
Aryeh Gregor
81dd1ee865 Bug 1191356 part 8 - Clean up nsHTMLEditRules::WillAbsolutePosition; r=ehsan 2016-05-01 17:58:41 +03:00
Aryeh Gregor
bf808d8cc0 Bug 1191356 part 7 - Clean up nsHTMLEditor::GetSelectionContainer; r=ehsan
This makes the XPCOM GetSelectionContainer return an error in cases
where previously it would return success but a null pointer.  This could
theoretically cause problems, but there's no obvious non-ugly way to
avoid it.
2016-05-01 17:58:29 +03:00
Aryeh Gregor
1d5314df0c Bug 1191356 part 6 - Clean up nsHTMLEditRules::WillMakeBasicBlock; r=ehsan 2016-05-01 17:58:17 +03:00
Sebastian Hengst
2fd74ed0d1 Backed out changeset 6dbba6c4a200 (bug 1191356) for build bustage. r=backout on a CLOSED TREE 2016-05-01 16:27:40 +02:00
Sebastian Hengst
ce0ea5ad03 Backed out changeset aa61db1f8f83 (bug 1191356) 2016-05-01 16:27:29 +02:00
Sebastian Hengst
0526cdbd22 Backed out changeset 7b3284a488dc (bug 1191356) 2016-05-01 16:27:21 +02:00
Sebastian Hengst
bed664c09b Backed out changeset acf185618acd (bug 1191356) 2016-05-01 16:27:11 +02:00
Sebastian Hengst
46b9ec79bb Backed out changeset 50b15734fe1d (bug 1193762) 2016-05-01 16:27:03 +02:00
Sebastian Hengst
e1428250cb Backed out changeset 6b3d9803990b (bug 1193762) 2016-05-01 16:26:56 +02:00
Sebastian Hengst
ff6ae40a51 Backed out changeset ef0eaadbed31 (bug 1193762) 2016-05-01 16:26:45 +02:00
Aryeh Gregor
4f5b418627 Bug 1193762 part 3 - Remove nsEditor::IsDescendantOfEditorRoot(nsIDOMNode*); r=ehsan 2016-05-01 16:18:39 +03:00
Aryeh Gregor
45c59d499f Bug 1193762 part 2 - Remove nsHTMLEditor::IsVisBreak(nsIDOMNode*); r=ehsan 2016-05-01 16:18:26 +03:00
Aryeh Gregor
0c5699255e Bug 1193762 part 1 - Remove nsEditor::IsBlockNode(nsIDOMNode*); r=ehsan 2016-05-01 16:18:14 +03:00
Aryeh Gregor
99add47b6d Bug 1191356 part 9 - Convert nsHTMLEditRules::mNewBlock to Element; r=ehsan 2016-05-01 16:18:03 +03:00
Aryeh Gregor
dccb99b0b6 Bug 1191356 part 8 - Clean up nsHTMLEditRules::WillAbsolutePosition; r=ehsan 2016-05-01 16:17:50 +03:00
Aryeh Gregor
0d6d4b284b Bug 1191356 part 7 - Clean up nsHTMLEditor::GetSelectionContainer; r=ehsan
This makes the XPCOM GetSelectionContainer return an error in cases
where previously it would return success but a null pointer.  This could
theoretically cause problems, but there's no obvious non-ugly way to
avoid it.
2016-05-01 16:17:39 +03:00
Aryeh Gregor
77e622044a Bug 1191356 part 6 - Clean up nsHTMLEditRules::WillMakeBasicBlock; r=ehsan 2016-05-01 16:17:27 +03:00
Aryeh Gregor
5905c70893 Bug 1191356 part 5 - Clean up nsHTMLEditRules::RelativeChangeIndentationOfElementNode; r=ehsan 2016-05-01 16:17:15 +03:00
Aryeh Gregor
8591247a42 Bug 1191356 part 4 - Clean up nsHTMLEditRules::MoveNodeSmart, MoveContents; r=ehsan 2016-05-01 16:17:03 +03:00
Aryeh Gregor
bfb967416f Bug 1191356 part 3 - Clean up nsHTMLEditRules::MoveBlock; r=ehsan 2016-05-01 16:16:50 +03:00
Aryeh Gregor
5b2a15bdb0 Bug 1191356 part 2 - Clean up nsHTMLEditor::RemoveBlockContainer; r=ehsan 2016-05-01 16:16:38 +03:00
Aryeh Gregor
fb41b34868 Bug 1191356 part 1 - Clean up nsHTMLEditRules::RemoveListStructure; r=ehsan 2016-05-01 16:16:26 +03:00
Aryeh Gregor
a066bf53e5 Bug 1191354 part 13 - Clean up nsHTMLEditRules::SplitBlock; r=ehsan 2016-05-01 16:16:15 +03:00
Aryeh Gregor
097c58d5eb Bug 1191354 part 12 - Clean up nsHTMLEditRules::OutdentPartOfBlock; r=ehsan 2016-05-01 16:16:03 +03:00
Aryeh Gregor
e2b45addf7 Bug 1191354 part 11 - Clean up nsHTMLEditRules::WillOutdent; r=ehsan 2016-05-01 16:15:51 +03:00
Aryeh Gregor
86500a0036 Bug 1191354 part 9 - Remove old nsHTMLEditRules::ConvertListType variant; r=ehsan 2016-05-01 16:15:27 +03:00
Aryeh Gregor
f9d2d13cb5 Bug 1191354 part 8 - Typedefs in headers for readability; r=ehsan 2016-05-01 16:15:14 +03:00
Aryeh Gregor
ef040f7942 Bug 1191354 part 7 - Clean up nsHTMLEditRules::CheckForInvisibleBR; r=ehsan 2016-05-01 16:15:02 +03:00
Aryeh Gregor
573c9d0ab3 Bug 1191354 part 6 - Clean up IsBlockNode/IsInlineNode in nsHTMLEditRules.cpp; r=ehsan 2016-05-01 16:14:51 +03:00
Aryeh Gregor
fcbd93de52 Bug 1191354 part 5 - Clean up nsHTMLEditRules::IsEmptyInline; r=ehsan 2016-05-01 16:14:39 +03:00
Aryeh Gregor
2f2e3c0922 Bug 1191354 part 4 - Clean up nsHTMLEditRules::AlignBlock; r=ehsan 2016-05-01 16:14:27 +03:00
Aryeh Gregor
53be15e904 Bug 1191354 part 3 - Clean up nsHTMLEditRules::InsertMozBRIfNeeded; r=ehsan 2016-05-01 16:14:15 +03:00
Aryeh Gregor
a242464c64 Bug 1191354 part 2 - Clean up nsHTMLEditRules::CheckInterlinePosition; r=ehsan 2016-05-01 16:14:02 +03:00
Aryeh Gregor
f8fa9944cb Bug 1191354 part 1 - Clean up nsHTMLEditRules::GetHighestInlineParent; r=ehsan 2016-05-01 16:13:51 +03:00
Aryeh Gregor
62ef6c7bb5 Bug 1190172 part 12 - Clean up nsHTMLEditRules::ExpandSelectionForDeletion; r=ehsan 2016-05-01 16:13:39 +03:00
Aryeh Gregor
d92f03a311 Bug 1190172 part 11 - Clean up nsHTMLEditRules::IsEmptyBlock; r=ehsan 2016-05-01 16:13:27 +03:00
Aryeh Gregor
aa64a725d7 Bug 1190172 part 10 - Clean up nsHTMLEditor::ReturnInListItem; r=ehsan 2016-05-01 16:13:15 +03:00
Aryeh Gregor
844eb62b2f Bug 1190172 part 9 - Clean up nsHTMLEditor::ReturnInHeader; r=ehsan 2016-05-01 16:13:03 +03:00
Aryeh Gregor
e876ffcb35 Bug 1190172 part 8 - Clean up nsHTMLEditor::PromoteRangeIfStartsOrEndsInNamedAnchor; r=ehsan 2016-05-01 16:12:51 +03:00
Aryeh Gregor
ae41a2dd75 Bug 1190172 part 7 - Clean up nsHTMLEditor::PromoteInlineRange; r=ehsan 2016-05-01 16:12:39 +03:00
Aryeh Gregor
1588157e3f Bug 1190172 part 6 - Clean up nsHTMLEditor::RelativeFontChangeOnTextNode; r=ehsan 2016-05-01 16:12:27 +03:00
Aryeh Gregor
4965f76e10 Bug 1190172 part 5 - Clean up nsHTMLEditor::NodeIsProperty; r=ehsan 2016-05-01 16:12:15 +03:00
Aryeh Gregor
8aec477e68 Bug 1190172 part 4 - Remove unused nsHTMLEditor::HasAttr; r=ehsan 2016-05-01 16:12:04 +03:00
Aryeh Gregor
e3e1997c88 Bug 1190172 part 3 - Remove old method variants; r=ehsan 2016-05-01 16:11:52 +03:00
Aryeh Gregor
b9ebf8a2e4 Bug 1190172 part 2 - Clean up nsHTMLEditor::ClearStyle; r=ehsan 2016-05-01 16:11:40 +03:00
Aryeh Gregor
d0c325c933 Bug 1190172 part 1 - Clean up nsHTMLEditor::SplitStyleAbovePoint; r=ehsan 2016-05-01 16:11:28 +03:00
Aryeh Gregor
b54341c0b9 Bug 1156062 part 12 - Clean up nsHTMLEditRules::GetAlignment; r=masayuki 2016-05-01 16:11:16 +03:00
Aryeh Gregor
d47825b953 Bug 1156062 part 11 - Clean up nsHTMLEditRules::Before/AfterEdit; r=masayuki 2016-05-01 16:11:04 +03:00
Aryeh Gregor
b1599838f5 Bug 1156062 part 10 - Clean up MarginPropertyAtomForIndent; r=masayuki 2016-05-01 16:10:52 +03:00
Aryeh Gregor
80d1e430e0 Bug 1156062 part 9 - Clean up nsHTMLEditRules::WillAlign; r=masayuki 2016-05-01 16:10:39 +03:00
Carsten "Tomcat" Book
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Ryan VanderMeulen
81e9a4a18e Bug 972110 - Skip test_bug674770-1.html on Linux debug e10s due to intermittent failures. 2016-04-28 16:55:18 -04:00
Christoph Kerschbaumer
232720eac5 Bug 1263286 - Move base-uri CSP check into SetBaseURIUsingFirstBaseWithHref. r=bz 2016-04-26 11:48:29 +02:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Masayuki Nakano
798200a916 Backout changeset 1e142031ab51 (bug 115602 part 9)
--HG--
extra : rebase_source : 54b15fc4a1dea12474aca268917293dc717c51cb
2016-04-23 20:04:37 +09:00
Masayuki Nakano
b929d562be Backout changeset a530f2e280a4 (bug 115602 part 10)
--HG--
extra : rebase_source : c95b7d266c27a4db965224a5e2153bc509813768
2016-04-23 20:04:02 +09:00
Masayuki Nakano
9325eeb902 Backout changeset e9577aa83ab0 (bug 115602 part 11)
--HG--
extra : rebase_source : 1f08ffd194ba33bb0c76b5789b57ce80bc4b24da
2016-04-23 20:03:32 +09:00
Masayuki Nakano
28bb16d728 Backout changeset bf13f411417b (bug 115602 part 12)
--HG--
extra : rebase_source : a75921d4181ac29fe43f298267b1ce6cb08dd8ab
2016-04-23 20:03:03 +09:00
Masayuki Nakano
4bb9e45e9f Backout changeset 7207f05dd558 (bug 1190172 part 1)
--HG--
extra : rebase_source : 613172577500bfe46775a0c429c9a9aba9293bac
2016-04-23 20:02:28 +09:00
Masayuki Nakano
db9ddcac79 Backout changeset 643bf6006fea (bug 1190172 part 2)
--HG--
extra : rebase_source : c806f63e9cf69bf380e5c3a377de1af3fc35f561
2016-04-23 20:02:00 +09:00
Masayuki Nakano
65acec6efb Backout changeset ac6a27516edb (bug 1190172 part 3)
--HG--
extra : rebase_source : 17c98f03485a964e74f58d0c684ed756f6a37441
2016-04-23 20:01:32 +09:00
Masayuki Nakano
4656c119c1 Backout changeset b3a4fcd6e166 (bug 1190172 part 4)
--HG--
extra : rebase_source : ea006b33268fb46c0aac352a8ca63194102c51f8
2016-04-23 20:01:03 +09:00
Masayuki Nakano
a82e07913d Backout changeset aabe14890eb2 (bug 1190172 part 5)
--HG--
extra : rebase_source : 3177e815345d5f5c3c28729da7aa8ffbe05790d2
2016-04-23 20:00:35 +09:00
Masayuki Nakano
a3991f4cac Backout changeset 9d9b34db284d (bug 1190172 part 6)
--HG--
extra : rebase_source : 7754e4a2d4284c8114d7592fefe2181c5b1b7eac
2016-04-23 20:00:05 +09:00
Masayuki Nakano
39fe4e3567 Backout changeset 47a8205beae7 (bug 1190172 part 7)
--HG--
extra : rebase_source : 660a93fad26fc7a2516c5a4f490cd28e2e42d2fc
2016-04-23 19:59:35 +09:00
Masayuki Nakano
8ff0d45b03 Backout changeset 6d1996e26f78 (bug 1190172 part 8)
--HG--
extra : rebase_source : 4c3cfa50790f88c018e57de8191fedca3cb7a407
2016-04-23 19:59:06 +09:00
Masayuki Nakano
f9b512ff32 Backout changeset 8af4b2f65a89 (bug 1190172 part 9)
--HG--
extra : rebase_source : 665f4e825ceecdd6e4b49a9d03ae722aad964ad5
2016-04-23 19:58:28 +09:00
Masayuki Nakano
1c1fbc3eb0 Backout changeset fd552a08c876 (bug 1190172 part 10)
--HG--
extra : rebase_source : 110d707f75da51d537b28ba242675fa047da4223
2016-04-23 19:57:50 +09:00
Masayuki Nakano
3aba3916c7 Backout changeset bb29532b1b73 (bug 1190172 part 11)
--HG--
extra : rebase_source : 08096495e936bfd6517d6651149ec65c96805980
2016-04-23 19:57:09 +09:00
Masayuki Nakano
0b13a5e58c Backed out due to bustage on all platforms (bug 1156062 (9-12) and bug 1190172 (1-12)
--HG--
extra : histedit_source : 89ab254f9b0be11800b0d3b991cf599d0e3d8964
2016-04-23 19:38:45 +09:00
Aryeh Gregor
0e45e926f8 Bug 1190172 part 12 - Clean up nsHTMLEditRules::ExpandSelectionForDeletion; r=ehsan 2016-04-23 19:29:43 +09:00
Aryeh Gregor
97304ffbba Bug 1190172 part 11 - Clean up nsHTMLEditRules::IsEmptyBlock; r=ehsan 2016-04-23 19:29:21 +09:00
Aryeh Gregor
e590800e2e Bug 1190172 part 10 - Clean up nsHTMLEditor::ReturnInListItem; r=ehsan 2016-04-23 19:28:57 +09:00
Aryeh Gregor
733498ac35 Bug 1190172 part 9 - Clean up nsHTMLEditor::ReturnInHeader; r=ehsan 2016-04-23 19:28:17 +09:00
Aryeh Gregor
e662b1b8ed Bug 1190172 part 8 - Clean up nsHTMLEditor::PromoteRangeIfStartsOrEndsInNamedAnchor; r=ehsan 2016-04-23 19:27:50 +09:00
Aryeh Gregor
d4bcaf41a0 Bug 1190172 part 7 - Clean up nsHTMLEditor::PromoteInlineRange; r=ehsan 2016-04-23 19:27:28 +09:00
Aryeh Gregor
4bcac88d54 Bug 1190172 part 6 - Clean up nsHTMLEditor::RelativeFontChangeOnTextNode; r=ehsan 2016-04-23 19:27:04 +09:00
Aryeh Gregor
babd34f7bb Bug 1190172 part 5 - Clean up nsHTMLEditor::NodeIsProperty; r=ehsan 2016-04-23 19:26:40 +09:00
Aryeh Gregor
3931489056 Bug 1190172 part 4 - Remove unused nsHTMLEditor::HasAttr; r=ehsan 2016-04-23 19:26:16 +09:00
Aryeh Gregor
516d35791d Bug 1190172 part 3 - Remove old method variants; r=ehsan 2016-04-23 19:25:54 +09:00
Aryeh Gregor
3b6aac3ba5 Bug 1190172 part 2 - Clean up nsHTMLEditor::ClearStyle; r=ehsan 2016-04-23 19:25:29 +09:00
Aryeh Gregor
b058686d23 Bug 1190172 part 1 - Clean up nsHTMLEditor::SplitStyleAbovePoint; r=ehsan 2016-04-23 19:25:04 +09:00
Aryeh Gregor
a144a23e3a Bug 1156062 part 12 - Clean up nsHTMLEditRules::GetAlignment; r=masayuki 2016-04-23 19:24:13 +09:00
Aryeh Gregor
7eaf2035c4 Bug 1156062 part 11 - Clean up nsHTMLEditRules::Before/AfterEdit; r=masayuki 2016-04-23 19:23:50 +09:00
Aryeh Gregor
c12f7e7f6f Bug 1156062 part 10 - Clean up MarginPropertyAtomForIndent; r=masayuki 2016-04-23 19:23:20 +09:00
Aryeh Gregor
914ca44a44 Bug 1156062 part 9 - Clean up nsHTMLEditRules::WillAlign 2016-04-23 19:22:48 +09:00
Aryeh Gregor
2dc492c957 Bug 1156062 part 8 - Clean up nsHTMLEditRules::JoinBlocks; r=ehsan
--HG--
extra : rebase_source : 6b76252e1e569fd792829a0dbe31e8412cd2fa9d
2016-04-23 19:20:20 +09:00
Aryeh Gregor
59b80ff2d8 Bug 1156062 part 7 - Clean up nsHTMLEditRules::StandardBreakImpl; r=ehsan 2016-04-23 18:32:13 +09:00
Aryeh Gregor
a5325910ce Bug 1156062 part 6 - Clean up nsHTMLEditRules::WillInsertBreak; r=ehsan 2016-04-23 18:32:04 +09:00
Aryeh Gregor
ff29bf2138 Bug 1156062 part 5 - Make CreateBR return regular pointer; r=ehsan 2016-04-23 18:31:55 +09:00
Aryeh Gregor
258c4350c5 Bug 1156062 part 4 - Clean up ns*EditRules::WillInsert; r=ehsan 2016-04-23 18:30:17 +09:00
Aryeh Gregor
d2127d6d42 Bug 1258085 - Avoid empty whitespace nodes when editing
There are probably a lot more places that could use HandleEmptyText
thrown in, but this covers a few simple ones.
2016-04-20 21:19:20 +03:00
Aryeh Gregor
caece2e88c Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:45:21 +03:00
Aryeh Gregor
ee087628e7 Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:45:17 +03:00
Aryeh Gregor
1840135a82 Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:45:14 +03:00
Aryeh Gregor
0baa2aa34f Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:45:10 +03:00
Aryeh Gregor
5ffff818d3 Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:45:07 +03:00
Aryeh Gregor
756ddeeed2 Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:45:03 +03:00
Aryeh Gregor
ed26b75d9e Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:59 +03:00
Aryeh Gregor
81d03b3b1d Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:56 +03:00
Aryeh Gregor
c5618ff5a6 Bug 1156062 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:52 +03:00
Aryeh Gregor
b75a20d5c8 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:48 +03:00
Aryeh Gregor
52f4bc1e37 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:44 +03:00
Aryeh Gregor
fa460326a7 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:41 +03:00
Aryeh Gregor
a1bda4c481 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:37 +03:00
Aryeh Gregor
829d16bdb2 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:34 +03:00
Aryeh Gregor
9534eef73e Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:30 +03:00
Aryeh Gregor
13b689b1a7 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:26 +03:00
Aryeh Gregor
15ccd5187d Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:23 +03:00
Aryeh Gregor
5e51c6d5e4 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:19 +03:00
Aryeh Gregor
9b7107904f Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:15 +03:00
Aryeh Gregor
488a38c0e5 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:12 +03:00
Aryeh Gregor
5d233696f9 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:08 +03:00
Aryeh Gregor
53d99b8f93 Bug 1190172 - Back out for now, requested by Masayuki at bug 1191356 comment 23 2016-04-20 20:44:04 +03:00
L. David Baron
b1db407049 Bug 1265591 patch 2 - Rename nsIPresShell::ReconstructStyleData to RestyleForCSSRuleChanges. r=heycam
MozReview-Commit-ID: BU3X0fBEKE3
2016-04-19 11:38:35 -07:00
Aryeh Gregor
f720349666 Bug 1156062 - Bustage follow up fix on a CLOSED TREE, a=tomcat
--HG--
extra : amend_source : 7783f17a038f6d8ebc4fe03cb1f29cd52d272259
2016-04-19 16:44:49 +02:00
Aryeh Gregor
71153b052c Bug 1190172 part 12 - Clean up nsHTMLEditRules::ExpandSelectionForDeletion; r=ehsan
--HG--
extra : rebase_source : e6b2ec62c854af3be4b7759efd1518b87ba1c85d
2016-04-19 06:57:00 +02:00
Aryeh Gregor
f88d4daee6 Bug 1190172 part 11 - Clean up nsHTMLEditRules::IsEmptyBlock; r=ehsan
--HG--
extra : rebase_source : 43174f4b1874d3ada612683d9c33cc4280e864d8
2016-04-19 06:56:00 +02:00
Aryeh Gregor
b8c3a7a9ba Bug 1190172 part 10 - Clean up nsHTMLEditor::ReturnInListItem; r=ehsan
--HG--
extra : rebase_source : 8558d1bb3cb98846d9c0a7533e89e1fd6c9ab232
2016-04-19 06:56:00 +02:00
Aryeh Gregor
aa506cfc83 Bug 1190172 part 9 - Clean up nsHTMLEditor::ReturnInHeader; r=ehsan
--HG--
extra : rebase_source : 8d01d8b2e69f2fc3eca70fdc5221f73f538225ad
2016-04-19 06:55:00 +02:00
Aryeh Gregor
8678ca4e69 Bug 1190172 part 8 - Clean up nsHTMLEditor::PromoteRangeIfStartsOrEndsInNamedAnchor; r=ehsan
--HG--
extra : rebase_source : 26411341557b0b75e869c19186c490ef76d82bcd
2016-04-19 06:54:00 +02:00
Aryeh Gregor
7cff78a5cc Bug 1190172 part 7 - Clean up nsHTMLEditor::PromoteInlineRange; r=ehsan
--HG--
extra : rebase_source : b7037f3274f17703d88cd76e4e259df0134416a1
2016-04-19 06:52:00 +02:00
Aryeh Gregor
448368b169 Bug 1190172 part 6 - Clean up nsHTMLEditor::RelativeFontChangeOnTextNode; r=ehsan
--HG--
extra : rebase_source : 24e05717dead135efceda3696c6e4d840a5133d5
2016-04-19 05:45:00 +02:00
Aryeh Gregor
2702783e0e Bug 1190172 part 5 - Clean up nsHTMLEditor::NodeIsProperty; r=ehsan
--HG--
extra : rebase_source : 164836d19a9b9f3f2efe51276483b0d994245526
2016-04-19 05:42:00 +02:00
Aryeh Gregor
10a6476077 Bug 1190172 part 4 - Remove unused nsHTMLEditor::HasAttr; r=ehsan
--HG--
extra : rebase_source : 8421d6056d8867b788e2da3a76d0df0e09c620b6
2016-04-19 05:41:00 +02:00
Aryeh Gregor
e35122e0fc Bug 1190172 part 3 - Remove old method variants; r=ehsan
--HG--
extra : rebase_source : bbd86c76fd6db7707622238d35be88d0b5a5abe3
2016-04-19 05:39:00 +02:00
Aryeh Gregor
8c8477cf1a Bug 1190172 - part 2 - Clean up nsHTMLEditor::ClearStyle; r=ehsan
--HG--
extra : rebase_source : 8e467eccda7955224dff9e7e9c51985d9b8d27e7
2016-04-19 05:37:00 +02:00
Aryeh Gregor
2c98e62ed8 Bug 1190172 part 1 - Clean up nsHTMLEditor::SplitStyleAbovePoint; r=ehsan
--HG--
extra : rebase_source : f64f75bc677b27006d9ce9649a5a21641b776fc7
2016-04-19 05:35:00 +02:00
Aryeh Gregor
61374e421b Bug 1156062 part 12 - Clean up nsHTMLEditRules::GetAlignment; r=masayuki
--HG--
extra : rebase_source : 6625361c8c48025d74c72f903ad7dd60ef3a12c7
2016-04-19 06:55:00 +02:00
Aryeh Gregor
8e48b4105f Bug 1156062 part 11 - Clean up nsHTMLEditRules::Before/AfterEdit; r=masayuki
--HG--
extra : rebase_source : 2faebb018f1d26f6c1d62908aa75b6af627772de
2016-04-19 06:53:00 +02:00
Aryeh Gregor
313dd100c7 Bug 1156062 part 10 - Clean up MarginPropertyAtomForIndent; r=masayuki
--HG--
extra : rebase_source : da9ac5810c638a972c6c02edf13833d6f0e3151e
2016-04-19 06:52:00 +02:00
Aryeh Gregor
20c3a65c05 Bug 1156062 part 9 - Clean up nsHTMLEditRules::WillAlign. r=masayuki
--HG--
extra : rebase_source : 39b8794e2aebb4a5a05b2b1063a75478f6fcd605
2016-04-19 05:45:00 +02:00
Aryeh Gregor
ccc375a53a Bug 1156062 part 8 - Clean up nsHTMLEditRules::JoinBlocks; r=ehsan
--HG--
extra : rebase_source : 116529ad60392d051c03a3efd1bb589e20711877
2016-04-19 05:42:00 +02:00
Aryeh Gregor
c0d9a1d223 Bug 1156062 part 7 - Clean up nsHTMLEditRules::StandardBreakImpl; r=ehsan
--HG--
extra : rebase_source : 2b93aac93725c013b869489a66dbc132c985b54b
2016-04-19 05:41:00 +02:00
Aryeh Gregor
cb86b50848 Bug 1156062 - part 6 - Clean up nsHTMLEditRules::WillInsertBreak; r=ehsan
--HG--
extra : rebase_source : b18b159035dfa37f8d4542c7bb9215c91cd86680
2016-04-19 05:38:00 +02:00
Aryeh Gregor
1be371db53 Bug 1156062 - part 5 - Make CreateBR return regular pointer; r=ehsan
--HG--
extra : rebase_source : f8bebcad32e07eff950f576c10e6842068ca25fd
2016-04-19 05:36:00 +02:00
Aryeh Gregor
9e2f1d3ae2 Bug 1156062 - part 4 - Clean up ns*EditRules::WillInsert; r=ehsan
--HG--
extra : rebase_source : af369a0e665c7d696d007658be22744811a050fa
2016-04-19 05:34:00 +02:00
Masayuki Nakano
07b6f24132 Bug 1259657 Rename WidgetGUIEvent::widget to WidgetGUIEvent::mWidget r=smaug
MozReview-Commit-ID: 167PQWJDEHW

--HG--
extra : rebase_source : 6cd44095b9f33e03190972f043087786cbd772f2
2016-04-14 17:03:14 +09:00
Jorg K
5ee74b09dd Bug 1263883 - Don't assume offset==0 when splitting paragraph. r=masayuki 2016-04-15 07:08:00 -04:00
Jonathan Watt
9480920b04 Bug 1263785 - Kill off the deprecated nsINode::GetCurrentDoc. r=baku 2016-03-31 12:46:32 +01:00
Jonathan Watt
fb7bb15e68 Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku 2016-03-31 11:58:25 +01:00
William Chen
303bd1fd42 Bug 1259590 - Remove B2G ACL code. r=khuey 2016-04-07 09:50:01 -07:00
Jorg K
d5eb942449 Bug 387687 - wrap quotes in plain text replies to window. r=masayuki 2016-04-05 00:22:00 +02:00
Jorg K
435ec5d98e Bug 233705 - remove mDontWrapAnyQuotes, mWrapToWindow and pref wrap_to_window_width. r=ehsan 2016-04-04 23:54:00 +02:00
Jorg K
23eba7c0b4 Bug 1257363 - add null check so it doesn't crash. r=masayuki
--HG--
extra : rebase_source : c937d52c3621b8323ae8275cfb8197dc260dcb7b
2016-04-02 14:40:00 +02:00
Nicholas Nethercote
d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Jorg K
02369b0995 Bug 1257363 - If deleting empty block, position caret at the start/end of text node (if any). r=masayuki a=kwierso
MozReview-Commit-ID: GXLTnJLFiop
2016-03-31 14:20:59 -07:00
Ryan VanderMeulen
7853cf9f02 Bug 1260055 - Skip test_bug597331.html and test_bug600570.html on Windows versions other than XP. r=ehsan
--HG--
extra : rebase_source : b21ff329905a0e3c96927577f74803bbd0e53ca0
2016-03-29 10:27:49 -04:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
Arata Furukawa
676913b9bb Bug 1259655 - part 1 Rename WidgetEventTime::time to WidgetEventTime::mTime r=masayuki
MozReview-Commit-ID: 7lBCEVkanvF

--HG--
extra : source : d629f018d02594951b7deccf1e1fce279d04694c
2016-03-28 13:29:42 +09:00
Masayuki Nakano
cea0b9cf02 Bug 1256589 part.6 Move the implementation of IsTrusted() from dom::Event to WidgetEvent r=smaug
MozReview-Commit-ID: 1SgMbTL8csl

--HG--
extra : rebase_source : 748fa8a594176edf7b2addd038b8031019d0dd35
extra : source : f4ce36e68ce06c405a6fab31facc120b94709aed
2016-03-17 16:01:30 +09:00
Ryan VanderMeulen
be3bbfc784 No bug - Re-enable some disabled reftests on e10s.
--HG--
extra : rebase_source : d3c1489372f7be7baf4dc0282c9f37a82fe2e685
2016-03-21 00:28:43 -04:00
Ehsan Akhgari
825c62d646 Bug 1256513 - Convert the test for bug 527935 into a browser-chrome test that is enabled on e10s; r=mrbkap 2016-03-15 19:09:49 -04:00
Ehsan Akhgari
bfe24ccc8f Bug 1255919 - Convert the test for bug 629172 into a browser-chrome test that is enabled on e10s; r=mrbkap 2016-03-15 17:39:02 -04:00
Sebastian Hengst
936d2c6e1d Backed out changeset cc8b02b24319 (bug 1255919) for failing e.g. bc3's browser_bug629172.js. r=backout on a CLOSED TREE 2016-03-14 22:54:57 +01:00
Ehsan Akhgari
e2a795b42a Bug 1255919 - Convert the test for bug 629172 into a browser-chrome test that is enabled on e10s; r=mrbkap 2016-03-14 16:17:18 -04:00
Peter Van der Beken
87d5ae7fbc Bug 1253734 - Add some more editor things to CC traversal. r=mccr8.
--HG--
extra : rebase_source : 903cc987ee5898f4947c8cde5cd708b16eff990d
2016-03-04 23:11:37 +01:00
Nathan Froyd
7578babdd1 Bug 1254618 - modify nsTransactionStack to use nsDeque rather than std::deque; r=ehsan
Using std::deque here causes problems for libc++ builds; TestTXMgr on
OSX 10.6 opt times out when libc++'d std::deque is used.  Running the
test locally shows that the test process consumes gigabytes (!) of
memory and is thus reduced to swapping, rather than making any progress.
libc++'s std::deque also appears to be slightly slower in said test that
even OSX libstdc++'s std::deque.  (Admittedly, this test is artificial.)

Let's sidestep the slowness of libc++'s std::deque by rewriting
nsTransactionStack to use nsDeque rather than std::deque.  Not only does
this change enable OSX 10.6 tests to pass, it also makes TestTXMgr
significantly faster in opt builds: TestTXMgr is anywhere from 25-60%
faster (depending on the platform) than when using std::deque from
libstdc++ or libc++.
2016-03-07 20:12:07 -05:00
Nathan Froyd
e3a01c4b4c Bug 1253424 - part 2 - add nsTransactionStack::IsEmpty; r=erahm
Checking to see whether the stack is empty is a reasonably common
operation.  We can make the code clearer and more efficient (no need to
refcount to check the emptiness of the stack) in several cases.
2016-03-03 16:13:18 -05:00
Nathan Froyd
d422cbba4b Bug 1253424 - part 1 - add a already_AddRefed nsTransactionStack::Push overload; r=erahm
We unnecessarily refcount in several places when pushing items onto an
nsTransactionStack.  Adding an already_AddRefed overload will enable
avoid those unnecessary refcounts.
2016-03-03 16:04:25 -05:00
Jorg K
bf7203ac32 Bug 1250010 - Fix nsHTMLEditRules::ReturnInParagraph(). r=ehsan 2016-02-24 13:43:00 +01:00