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

Issue 25403004: [oilpan] Figure out lifetime of remaining Node raw pointers (Part 2) (Closed)

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

Description

[oilpan] Figure out lifetime of remaining Node raw pointers (Part 2) R=ager@chromium.org, zerny@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158639

Patch Set 1 #

Patch Set 2 : #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -40 lines) Patch
M Source/bindings/v8/BindingSecurity.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/bindings/v8/BindingSecurity.cpp View 1 chunk +2 lines, -7 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLFormElementCustom.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLInputElementCustom.cpp View 7 chunks +7 lines, -7 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLLinkElementCustom.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLMediaElementCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8HTMLSelectElementCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/CheckedRadioButtons.cpp View 3 chunks +4 lines, -3 lines 4 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 chunk +1 line, -1 line 2 comments Download
M Source/core/html/InputType.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/MediaDocument.cpp View 1 chunk +2 lines, -1 line 1 comment Download
M Source/core/html/track/TextTrackList.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/track/TextTrackList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Frame.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
haraken
PTAL
7 years, 2 months ago (2013-10-01 01:10:23 UTC) #1
Mads Ager (chromium)
LGTM except for comment change in CheckedRadioButtons.cpp. https://codereview.chromium.org/25403004/diff/4001/Source/core/dom/CheckedRadioButtons.cpp File Source/core/dom/CheckedRadioButtons.cpp (right): https://codereview.chromium.org/25403004/diff/4001/Source/core/dom/CheckedRadioButtons.cpp#newcode48 Source/core/dom/CheckedRadioButtons.cpp:48: // FIXME(oilpan): ...
7 years, 2 months ago (2013-10-01 10:14:54 UTC) #2
zerny-chromium
lgtm https://codereview.chromium.org/25403004/diff/4001/Source/core/dom/CheckedRadioButtons.cpp File Source/core/dom/CheckedRadioButtons.cpp (right): https://codereview.chromium.org/25403004/diff/4001/Source/core/dom/CheckedRadioButtons.cpp#newcode51 Source/core/dom/CheckedRadioButtons.cpp:51: HTMLInputElement* m_checkedButton; Why should these be weak pointers? ...
7 years, 2 months ago (2013-10-01 10:18:37 UTC) #3
haraken
Thanks for reviewing! https://codereview.chromium.org/25403004/diff/4001/Source/core/dom/CheckedRadioButtons.cpp File Source/core/dom/CheckedRadioButtons.cpp (right): https://codereview.chromium.org/25403004/diff/4001/Source/core/dom/CheckedRadioButtons.cpp#newcode48 Source/core/dom/CheckedRadioButtons.cpp:48: // FIXME(oilpan): This should be a ...
7 years, 2 months ago (2013-10-01 16:46:52 UTC) #4
haraken
Committed patchset #2 manually as r158639.
7 years, 2 months ago (2013-10-01 16:47:45 UTC) #5
haraken
On 2013/10/01 10:14:54, Mads Ager (chromium) wrote: > LGTM except for comment change in CheckedRadioButtons.cpp. ...
7 years, 2 months ago (2013-10-01 17:20:07 UTC) #6
haraken
7 years, 2 months ago (2013-10-02 00:22:01 UTC) #7
Message was sent while issue was closed.
> Sorry, I got a bit confused. I wonder if they are weak pointers.
> 
> Imagine that there are 3 input elements managed by a CheckedButtonGroup. If
the
> first input element is removed from the document, the element should be
removed
> from the hash set (i.e., m_members). However, the CheckedButtonGroup should
> still be kept alive and the hash set should contain the other two elements. So
> the hash set should be weak, shouldn't it?

Now I understand :) removedFrom() is not related to the lifetime of objects, so
the clear-out is not a weak processing. Sorry about the noise.

Powered by Google App Engine
This is Rietveld 408576698