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

Issue 304323010: Oilpan: have DocumentInit use transition types throughout. (Closed)

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

Description

Oilpan: have DocumentInit use transition types throughout. For DocumentInit, the context document is no longer mediated as a WeakPtr, but as a Member. It is sufficient that the Document holds onto this reference weakly. R=haraken@chromium.org, tkent@chromium.org BUG=357163 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175260

Patch Set 1 #

Patch Set 2 : Disable failing ws unit tests (unrelated) #

Patch Set 3 : Rebased and undo unit test workaround #

Total comments: 6

Patch Set 4 : Add WeakPtrWillBeMember transition type #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -15 lines) Patch
M Source/core/dom/Document.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 chunks +11 lines, -3 lines 0 comments Download
M Source/core/dom/DocumentInit.h View 1 2 3 2 chunks +6 lines, -6 lines 2 comments Download
M Source/core/dom/DocumentInit.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/heap/Handle.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/wtf/WeakPtr.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
sof
Please take a look. https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/Document.cpp#newcode5824 Source/core/dom/Document.cpp:5824: visitor->trace(m_contextDocument); The alternative is to ...
6 years, 6 months ago (2014-06-02 06:39:44 UTC) #1
haraken
LGTM https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/Document.cpp#newcode5824 Source/core/dom/Document.cpp:5824: visitor->trace(m_contextDocument); On 2014/06/02 06:39:44, sof wrote: > The ...
6 years, 6 months ago (2014-06-02 07:17:03 UTC) #2
sof
https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/DocumentInit.h File Source/core/dom/DocumentInit.h (right): https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/DocumentInit.h#newcode87 Source/core/dom/DocumentInit.h:87: WeakPtr<Document> m_contextDocument; On 2014/06/02 07:17:03, haraken wrote: > > ...
6 years, 6 months ago (2014-06-02 07:20:05 UTC) #3
haraken
https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/DocumentInit.h File Source/core/dom/DocumentInit.h (right): https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/DocumentInit.h#newcode87 Source/core/dom/DocumentInit.h:87: WeakPtr<Document> m_contextDocument; On 2014/06/02 07:20:06, sof wrote: > On ...
6 years, 6 months ago (2014-06-02 07:26:46 UTC) #4
sof
https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/DocumentInit.h File Source/core/dom/DocumentInit.h (right): https://codereview.chromium.org/304323010/diff/30001/Source/core/dom/DocumentInit.h#newcode87 Source/core/dom/DocumentInit.h:87: WeakPtr<Document> m_contextDocument; On 2014/06/02 07:26:47, haraken wrote: > On ...
6 years, 6 months ago (2014-06-02 07:31:04 UTC) #5
sof
wtf OWNERS: added a WeakPtr(std::nullptr_t) constructor here -- acceptable?
6 years, 6 months ago (2014-06-02 07:35:40 UTC) #6
tkent
lgtm https://codereview.chromium.org/304323010/diff/50001/Source/core/dom/DocumentInit.h File Source/core/dom/DocumentInit.h (right): https://codereview.chromium.org/304323010/diff/50001/Source/core/dom/DocumentInit.h#newcode50 Source/core/dom/DocumentInit.h:50: explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, ...
6 years, 6 months ago (2014-06-02 07:56:06 UTC) #7
sof
https://codereview.chromium.org/304323010/diff/50001/Source/core/dom/DocumentInit.h File Source/core/dom/DocumentInit.h (right): https://codereview.chromium.org/304323010/diff/50001/Source/core/dom/DocumentInit.h#newcode50 Source/core/dom/DocumentInit.h:50: explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtrWillBeRawPtr<Document> ...
6 years, 6 months ago (2014-06-02 08:01:34 UTC) #8
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 6 months ago (2014-06-02 08:02:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/304323010/50001
6 years, 6 months ago (2014-06-02 08:03:26 UTC) #10
Mads Ager (chromium)
LGTM2
6 years, 6 months ago (2014-06-02 08:17:16 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 09:04:50 UTC) #12
Message was sent while issue was closed.
Change committed as 175260

Powered by Google App Engine
This is Rietveld 408576698