Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Issue 299353004: Oilpan: move editing objects to the heap. (Closed)

Created:
6 years, 7 months ago by sof
Modified:
6 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, groby+blinkspell_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Oilpan: move editing objects to the heap. Move the editing commands and style objects to the Oilpan heap, along with having them use transition types throughout. R=zerny@chromium.org,haraken@chromium.org,tkent@chromium.org BUG=357163 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175079

Patch Set 1 #

Total comments: 61

Patch Set 2 : Rebased + tidied #

Total comments: 20

Patch Set 3 : Add WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS() and make use of it #

Total comments: 4

Patch Set 4 : trace VisibleSelection::ChangeObserver #

Patch Set 5 : Attempt to make GC plugin happy wrt abstract trace() #

Patch Set 6 : Make test wrapper class finalized #

Unified diffs Side-by-side diffs Delta from patch set Stats (+993 lines, -609 lines) Patch
M Source/core/dom/ContainerNode.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Position.h View 1 8 chunks +16 lines, -7 lines 0 comments Download
M Source/core/dom/Position.cpp View 5 chunks +8 lines, -4 lines 0 comments Download
M Source/core/editing/AppendNodeCommand.h View 1 chunk +7 lines, -5 lines 0 comments Download
M Source/core/editing/AppendNodeCommand.cpp View 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/editing/ApplyBlockElementCommand.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/editing/ApplyBlockElementCommand.cpp View 1 2 chunks +11 lines, -5 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.h View 5 chunks +19 lines, -17 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 2 26 chunks +84 lines, -60 lines 0 comments Download
M Source/core/editing/BreakBlockquoteCommand.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/BreakBlockquoteCommand.cpp View 1 3 chunks +7 lines, -7 lines 0 comments Download
M Source/core/editing/Caret.h View 1 3 chunks +6 lines, -4 lines 0 comments Download
M Source/core/editing/Caret.cpp View 1 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.h View 5 chunks +38 lines, -34 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 2 34 chunks +76 lines, -58 lines 0 comments Download
M Source/core/editing/CreateLinkCommand.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/DeleteFromTextNodeCommand.h View 1 chunk +5 lines, -3 lines 0 comments Download
M Source/core/editing/DeleteFromTextNodeCommand.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/editing/DeleteSelectionCommand.h View 3 chunks +16 lines, -14 lines 0 comments Download
M Source/core/editing/DeleteSelectionCommand.cpp View 1 9 chunks +33 lines, -11 lines 0 comments Download
M Source/core/editing/EditCommand.h View 1 4 chunks +6 lines, -3 lines 0 comments Download
M Source/core/editing/EditCommand.cpp View 1 3 chunks +10 lines, -2 lines 0 comments Download
M Source/core/editing/EditingStyle.h View 6 chunks +20 lines, -17 lines 0 comments Download
M Source/core/editing/EditingStyle.cpp View 1 11 chunks +19 lines, -14 lines 0 comments Download
M Source/core/editing/Editor.h View 3 chunks +8 lines, -6 lines 0 comments Download
M Source/core/editing/Editor.cpp View 1 10 chunks +16 lines, -10 lines 0 comments Download
M Source/core/editing/EditorCommand.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/editing/FormatBlockCommand.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/FormatBlockCommand.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/FrameSelection.h View 1 2 3 7 chunks +19 lines, -10 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 2 3 4 6 chunks +23 lines, -9 lines 0 comments Download
M Source/core/editing/IndentOutdentCommand.h View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/editing/IndentOutdentCommand.cpp View 1 2 6 chunks +10 lines, -10 lines 0 comments Download
M Source/core/editing/InsertIntoTextNodeCommand.h View 1 chunk +5 lines, -3 lines 0 comments Download
M Source/core/editing/InsertIntoTextNodeCommand.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/editing/InsertLineBreakCommand.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/InsertLineBreakCommand.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/InsertListCommand.h View 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/editing/InsertListCommand.cpp View 1 3 chunks +9 lines, -3 lines 0 comments Download
M Source/core/editing/InsertNodeBeforeCommand.h View 1 chunk +7 lines, -5 lines 0 comments Download
M Source/core/editing/InsertNodeBeforeCommand.cpp View 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/editing/InsertParagraphSeparatorCommand.h View 2 chunks +7 lines, -5 lines 0 comments Download
M Source/core/editing/InsertParagraphSeparatorCommand.cpp View 1 12 chunks +22 lines, -15 lines 0 comments Download
M Source/core/editing/InsertTextCommand.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/InsertTextCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/MarkupAccumulator.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/editing/MarkupAccumulator.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/MergeIdenticalElementsCommand.h View 1 chunk +8 lines, -6 lines 0 comments Download
M Source/core/editing/MergeIdenticalElementsCommand.cpp View 2 chunks +9 lines, -1 line 0 comments Download
M Source/core/editing/MoveSelectionCommand.h View 1 chunk +5 lines, -3 lines 0 comments Download
M Source/core/editing/MoveSelectionCommand.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/editing/RemoveCSSPropertyCommand.h View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/editing/RemoveCSSPropertyCommand.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/editing/RemoveFormatCommand.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/RemoveFormatCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/RemoveNodeCommand.h View 1 chunk +8 lines, -6 lines 0 comments Download
M Source/core/editing/RemoveNodeCommand.cpp View 2 chunks +11 lines, -3 lines 0 comments Download
M Source/core/editing/RemoveNodePreservingChildrenCommand.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/editing/RemoveNodePreservingChildrenCommand.cpp View 2 chunks +9 lines, -3 lines 0 comments Download
M Source/core/editing/ReplaceNodeWithSpanCommand.h View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/editing/ReplaceNodeWithSpanCommand.cpp View 1 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.h View 5 chunks +10 lines, -7 lines 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.cpp View 1 2 3 29 chunks +56 lines, -47 lines 0 comments Download
M Source/core/editing/SetNodeAttributeCommand.h View 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/editing/SetNodeAttributeCommand.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/editing/SimplifyMarkupCommand.h View 1 chunk +7 lines, -5 lines 0 comments Download
M Source/core/editing/SimplifyMarkupCommand.cpp View 4 chunks +10 lines, -3 lines 0 comments Download
M Source/core/editing/SpellCheckRequester.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/SplitElementCommand.h View 1 chunk +8 lines, -6 lines 0 comments Download
M Source/core/editing/SplitElementCommand.cpp View 2 chunks +9 lines, -1 line 0 comments Download
M Source/core/editing/SplitTextNodeCommand.h View 2 chunks +6 lines, -4 lines 0 comments Download
M Source/core/editing/SplitTextNodeCommand.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/editing/SplitTextNodeContainingElementCommand.h View 1 chunk +5 lines, -3 lines 0 comments Download
M Source/core/editing/SplitTextNodeContainingElementCommand.cpp View 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/editing/TextInsertionBaseCommand.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/TextInsertionBaseCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/TypingCommand.h View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/editing/TypingCommand.cpp View 15 chunks +27 lines, -27 lines 0 comments Download
M Source/core/editing/UndoStack.h View 1 3 chunks +10 lines, -7 lines 0 comments Download
M Source/core/editing/UndoStack.cpp View 1 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/editing/UndoStep.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/editing/UnlinkCommand.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/VisiblePosition.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/editing/VisiblePosition.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/editing/VisibleSelection.h View 1 2 3 4 3 chunks +8 lines, -2 lines 0 comments Download
M Source/core/editing/VisibleSelection.cpp View 1 2 3 11 chunks +20 lines, -9 lines 0 comments Download
M Source/core/editing/VisibleSelectionTest.cpp View 1 2 3 4 5 2 chunks +17 lines, -5 lines 0 comments Download
M Source/core/editing/WrapContentsInDummySpanCommand.h View 1 chunk +7 lines, -5 lines 0 comments Download
M Source/core/editing/WrapContentsInDummySpanCommand.cpp View 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/editing/markup.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/markup.cpp View 1 2 15 chunks +30 lines, -19 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Page.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Page.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/PageSerializer.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/xml/XMLSerializer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/wtf/VectorTraits.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
sof
Please take a look. I apologize for the length of this, but once you flip ...
6 years, 7 months ago (2014-05-25 16:33:17 UTC) #1
haraken
Here is a first round of comments! I'm OK with handling this CL, but it ...
6 years, 7 months ago (2014-05-26 02:36:11 UTC) #2
haraken
+yosin, +yoichio
6 years, 7 months ago (2014-05-26 05:56:24 UTC) #3
yosin_UTC9
https://codereview.chromium.org/299353004/diff/1/Source/core/editing/Editor.h File Source/core/editing/Editor.h (right): https://codereview.chromium.org/299353004/diff/1/Source/core/editing/Editor.h#newcode240 Source/core/editing/Editor.h:240: LocalFrame& m_frame; On 2014/05/26 02:36:12, haraken wrote: > > ...
6 years, 7 months ago (2014-05-26 07:06:42 UTC) #4
zerny-chromium
oilpan lgtm with Haraken's comments addressed. https://codereview.chromium.org/299353004/diff/1/Source/core/dom/Position.h File Source/core/dom/Position.h (right): https://codereview.chromium.org/299353004/diff/1/Source/core/dom/Position.h#newcode218 Source/core/dom/Position.h:218: RefPtr<Node> m_anchorNode; On ...
6 years, 7 months ago (2014-05-26 07:51:07 UTC) #5
sof
https://codereview.chromium.org/299353004/diff/1/Source/core/dom/Position.h File Source/core/dom/Position.h (right): https://codereview.chromium.org/299353004/diff/1/Source/core/dom/Position.h#newcode218 Source/core/dom/Position.h:218: RefPtr<Node> m_anchorNode; On 2014/05/26 07:51:08, zerny-chromium wrote: > On ...
6 years, 6 months ago (2014-05-28 08:31:35 UTC) #6
haraken
Thanks for the update! Here is a final round of comments. https://codereview.chromium.org/299353004/diff/20001/Source/core/editing/ApplyStyleCommand.cpp File Source/core/editing/ApplyStyleCommand.cpp (right): ...
6 years, 6 months ago (2014-05-28 15:35:24 UTC) #7
Mads Ager (chromium)
https://codereview.chromium.org/299353004/diff/20001/Source/core/editing/markup.cpp File Source/core/editing/markup.cpp (right): https://codereview.chromium.org/299353004/diff/20001/Source/core/editing/markup.cpp#newcode296 Source/core/editing/markup.cpp:296: RefPtrWillBeRawPtr<EditingStyle> newInlineStyle; On 2014/05/28 15:35:25, haraken wrote: > > ...
6 years, 6 months ago (2014-05-28 16:09:43 UTC) #8
sof
Thanks haraken. I'm all for doing smaller CLs by now :) https://codereview.chromium.org/299353004/diff/20001/Source/core/editing/ApplyStyleCommand.cpp File Source/core/editing/ApplyStyleCommand.cpp (right): ...
6 years, 6 months ago (2014-05-28 22:06:05 UTC) #9
haraken
LGTM. tkent-san: Would you approve a change to wtf/ ? https://codereview.chromium.org/299353004/diff/20001/Source/core/editing/markup.cpp File Source/core/editing/markup.cpp (right): https://codereview.chromium.org/299353004/diff/20001/Source/core/editing/markup.cpp#newcode154 ...
6 years, 6 months ago (2014-05-29 01:14:14 UTC) #10
tkent
wtf LGTM. Please fix VisibleSelectionTest.cpp before landing. https://codereview.chromium.org/299353004/diff/40001/Source/wtf/VectorTraits.h File Source/wtf/VectorTraits.h (right): https://codereview.chromium.org/299353004/diff/40001/Source/wtf/VectorTraits.h#newcode113 Source/wtf/VectorTraits.h:113: template<> \ ...
6 years, 6 months ago (2014-05-29 01:19:22 UTC) #11
sof
https://codereview.chromium.org/299353004/diff/40001/Source/core/editing/VisibleSelection.h File Source/core/editing/VisibleSelection.h (right): https://codereview.chromium.org/299353004/diff/40001/Source/core/editing/VisibleSelection.h#newcode164 Source/core/editing/VisibleSelection.h:164: ChangeObserver* m_changeObserver; On 2014/05/29 01:14:15, haraken wrote: > > ...
6 years, 6 months ago (2014-05-29 10:03:52 UTC) #12
sof
On 2014/05/29 01:19:22, tkent wrote: > wtf LGTM. > > Please fix VisibleSelectionTest.cpp before landing. ...
6 years, 6 months ago (2014-05-29 10:06:08 UTC) #13
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 6 months ago (2014-05-29 10:06:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/299353004/100001
6 years, 6 months ago (2014-05-29 10:07:56 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-05-29 12:42:09 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 13:31:19 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/9665)
6 years, 6 months ago (2014-05-29 13:31:19 UTC) #18
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 6 months ago (2014-05-29 19:03:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/299353004/100001
6 years, 6 months ago (2014-05-29 19:04:34 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-05-29 20:03:48 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 00:32:01 UTC) #22
Message was sent while issue was closed.
Change committed as 175079

Powered by Google App Engine
This is Rietveld 408576698