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

Issue 2617103002: Use a new Supplement constructor for Supplement<Document> (Part 1) (Closed)

Created:
3 years, 11 months ago by haraken
Modified:
3 years, 11 months ago
Reviewers:
sof
CC:
chromium-reviews, dshwang, blink-reviews-paint_chromium.org, blink-reviews-css, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, dominicc+watchlist_chromium.org, apavlov+blink_chromium.org, darktears, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a new Supplement constructor for Supplement<Document> We're deprecating a default constructor of Supplement<>. This CL moves Supplement<Document> to use a constructor that takes a Document parameter. This enables to remove a couple of unnecessary m_document's. BUG=610176 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2617103002 Cr-Commit-Position: refs/heads/master@{#441911} Committed: https://chromium.googlesource.com/chromium/src/+/110425bcd5ef3ea734625d084af49723990ae0c8

Patch Set 1 #

Patch Set 2 : temp #

Total comments: 2

Patch Set 3 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -68 lines) Patch
M third_party/WebKit/Source/core/css/CSSTiming.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSTiming.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/FontFaceSet.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/CSSSelectorWatch.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp View 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentParserTiming.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintTiming.h View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintTiming.cpp View 2 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.cpp View 1 2 chunks +14 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/xml/DocumentXSLT.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xml/DocumentXSLT.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/storage/DOMWindowStorageController.h View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/storage/DOMWindowStorageController.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 13 (7 generated)
haraken
PTAL
3 years, 11 months ago (2017-01-06 07:25:37 UTC) #4
sof
lgtm https://codereview.chromium.org/2617103002/diff/20001/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp File third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp (right): https://codereview.chromium.org/2617103002/diff/20001/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp#newcode79 third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp:79: if (host()->frame()) { passing comment/thought - might there ...
3 years, 11 months ago (2017-01-06 07:55:06 UTC) #5
haraken
> https://codereview.chromium.org/2617103002/diff/20001/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp > File third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp (right): > > https://codereview.chromium.org/2617103002/diff/20001/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp#newcode79 > third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp:79: if (host()->frame()) > { ...
3 years, 11 months ago (2017-01-06 07:57:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2617103002/40001
3 years, 11 months ago (2017-01-06 07:57:49 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/110425bcd5ef3ea734625d084af49723990ae0c8
3 years, 11 months ago (2017-01-06 10:07:26 UTC) #12
sof
3 years, 11 months ago (2017-01-08 12:40:07 UTC) #13
Message was sent while issue was closed.
On 2017/01/06 07:57:29, haraken wrote:
> >
>
https://codereview.chromium.org/2617103002/diff/20001/third_party/WebKit/Sour...
> > File third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp (right):
> > 
> >
>
https://codereview.chromium.org/2617103002/diff/20001/third_party/WebKit/Sour...
> > third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp:79: if
> (host()->frame())
> > {
> > passing comment/thought - might there be a more self-explanatory naming of
the
> > supplementable's |host()| ?
> 
> Yeah, agreed. Shall we rename it to supplementable()?
>  

supplementHost() (or supplementOwner()) is the only alternative suggestion i can
think of.

Powered by Google App Engine
This is Rietveld 408576698