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

Issue 23243003: [oilpan] Wrap NodeVector into CollectionRoot for ensure that contained nodes stay alive. (Closed)

Created:
7 years, 4 months ago by Vyacheslav Egorov (Google)
Modified:
7 years, 4 months ago
CC:
blink-reviews, adamk+oilpan_chromium.org, Mads Ager (chromium), abarth-chromium
Visibility:
Public.

Description

[oilpan] Wrap NodeVector into CollectionRoot for ensure that contained nodes stay alive. This fixes bug instroduced in r156083: NodeVector used to contain RefPtr<Node> but was converted to contain Member<Node> without additional CollectionRoot<> wrapping. Additionally it tweaks CollectionRoot<T> to provide iterator/const_iterator types from the underlying Collection and redirect operator[] to further minimize amount of changes that needs to be done when wrapping something in CollectionRoot. R=ager@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156236

Patch Set 1 #

Patch Set 2 : Fix infinite looping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -22 lines) Patch
M Source/core/dom/ContainerNode.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 11 chunks +14 lines, -14 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/ReplaceNodeWithSpanCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/heap/Handle.h View 1 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Vyacheslav Egorov (Google)
7 years, 4 months ago (2013-08-16 17:39:59 UTC) #1
Mads Ager (chromium)
LGTM, thanks for fixing this Slava!
7 years, 4 months ago (2013-08-16 18:49:20 UTC) #2
Vyacheslav Egorov (Google)
Committed patchset #2 manually as r156236 (presubmit successful).
7 years, 4 months ago (2013-08-16 19:07:30 UTC) #3
haraken
7 years, 4 months ago (2013-08-17 00:33:39 UTC) #4
Message was sent while issue was closed.
LGTM. I hope Erik's verification mechanism will auto-catch this kind of Member
mis-visiting :)

Powered by Google App Engine
This is Rietveld 408576698