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

Issue 2671173002: Change CSSParserContext to have a Document handle (vs UseCounter). (Closed)

Created:
3 years, 10 months ago by Bret
Modified:
3 years, 10 months ago
Reviewers:
haraken
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change CSSParserContext to have a Document handle (vs UseCounter). This is a refactor only, no functionality should change. This gives CSSParserContext a WeakMember reference to a Document instead of a raw pointer to a UseCounter. Also gave CSSParserContext a count method so clients aren't forced to check for isUseCounterRecordingEnabled every time they want to count something. Also moved some getter methods around because some of them weren't necessary any more. BUG=668251 Review-Url: https://codereview.chromium.org/2671173002 Cr-Commit-Position: refs/heads/master@{#449449} Committed: https://chromium.googlesource.com/chromium/src/+/341a3f42f1319415886f11e12a3f1b84c8dd182d

Patch Set 1 #

Patch Set 2 : fix trace and import #

Total comments: 6

Patch Set 3 : comments 1 #

Total comments: 2

Patch Set 4 : fix todo style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -139 lines) Patch
M third_party/WebKit/Source/core/css/CSSKeyframesRule.cpp View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSStyleSheet.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSStyleSheet.cpp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleSheetContents.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleSheetContents.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSAtRuleID.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserContext.h View 1 2 7 chunks +16 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp View 1 2 7 chunks +36 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp View 1 3 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 7 chunks +13 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 2 chunks +5 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/properties/CSSPropertyLengthUtils.cpp View 1 chunk +15 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Bret
3 years, 10 months ago (2017-02-07 23:55:18 UTC) #7
haraken
https://codereview.chromium.org/2671173002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserContext.h File third_party/WebKit/Source/core/css/parser/CSSParserContext.h (right): https://codereview.chromium.org/2671173002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserContext.h#newcode115 third_party/WebKit/Source/core/css/parser/CSSParserContext.h:115: WeakMember<const Document> m_useCounterDocument; Does this need to be weak? ...
3 years, 10 months ago (2017-02-08 01:40:01 UTC) #10
Bret
https://codereview.chromium.org/2671173002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserContext.h File third_party/WebKit/Source/core/css/parser/CSSParserContext.h (right): https://codereview.chromium.org/2671173002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserContext.h#newcode115 third_party/WebKit/Source/core/css/parser/CSSParserContext.h:115: WeakMember<const Document> m_useCounterDocument; On 2017/02/08 01:40:00, haraken wrote: > ...
3 years, 10 months ago (2017-02-09 01:53:34 UTC) #13
haraken
https://codereview.chromium.org/2671173002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserContext.h File third_party/WebKit/Source/core/css/parser/CSSParserContext.h (right): https://codereview.chromium.org/2671173002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserContext.h#newcode115 third_party/WebKit/Source/core/css/parser/CSSParserContext.h:115: WeakMember<const Document> m_useCounterDocument; On 2017/02/09 01:53:33, Bret Sepulveda wrote: ...
3 years, 10 months ago (2017-02-09 02:01:42 UTC) #14
Bret
https://codereview.chromium.org/2671173002/diff/40001/third_party/WebKit/Source/core/css/StyleSheetContents.cpp File third_party/WebKit/Source/core/css/StyleSheetContents.cpp (right): https://codereview.chromium.org/2671173002/diff/40001/third_party/WebKit/Source/core/css/StyleSheetContents.cpp#newcode45 third_party/WebKit/Source/core/css/StyleSheetContents.cpp:45: // FIXME(https://crbug.com/242125): We may want to handle stylesheets that ...
3 years, 10 months ago (2017-02-09 02:08:19 UTC) #15
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/2671173002/60001
3 years, 10 months ago (2017-02-09 02:08:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/278931) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 10 months ago (2017-02-09 04:23:02 UTC) #20
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/2671173002/60001
3 years, 10 months ago (2017-02-09 21:51:10 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 23:00:01 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/341a3f42f1319415886f11e12a3f...

Powered by Google App Engine
This is Rietveld 408576698