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

Issue 2493003003: Introduce CSS parser mode for distinguishing static/dynamic profile (Closed)

Created:
4 years, 1 month ago by kochi
Modified:
4 years, 1 month ago
Reviewers:
Timothy Loh, rune
CC:
chromium-reviews, blink-reviews-css, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis, hayato, rune
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce CSS parser mode for distinguishing static/dynamic profile Static/dynamic profile is proposed at CSS Selectors Level 4 draft[1] to selectively enable or disable CSS selectors depending on the performance characteristics that selectors require. '>>>' (aka /deep/) is planned to be enabled under the experimental flag in static profile [2]. In the future :has() pseudo class will also be enabled in static profile. Implementation for '>>>' combinator is done in later CLs. [1] https://drafts.csswg.org/selectors/#profiles [2] https://github.com/w3c/webcomponents/issues/78 BUG=633007 Committed: https://crrev.com/528e38c9ff62f9eee3ced46ba11f4450e2fd4616 Cr-Commit-Position: refs/heads/master@{#432133}

Patch Set 1 #

Patch Set 2 : clean up #

Total comments: 4

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSParserMode.h View 1 2 4 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/SelectorQuery.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 29 (19 generated)
kochi
PTAL
4 years, 1 month ago (2016-11-14 08:40:56 UTC) #11
rune
For consistency, I think the parseSelector calls in SelectorQueryTest should use the static profile. apart ...
4 years, 1 month ago (2016-11-14 10:08:17 UTC) #15
Timothy Loh
lgtm https://codereview.chromium.org/2493003003/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp File third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp (right): https://codereview.chromium.org/2493003003/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp#newcode78 third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp:78: CSSParserContext::CSSParserContext(const CSSParserContext& other, Technically we should update the ...
4 years, 1 month ago (2016-11-15 02:27:07 UTC) #16
kochi
Thanks for reviews! Addressed all comments. https://codereview.chromium.org/2493003003/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp File third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp (right): https://codereview.chromium.org/2493003003/diff/20001/third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp#newcode78 third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp:78: CSSParserContext::CSSParserContext(const CSSParserContext& other, ...
4 years, 1 month ago (2016-11-15 04:24:38 UTC) #17
kochi
4 years, 1 month ago (2016-11-15 04:24:58 UTC) #18
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/2493003003/40001
4 years, 1 month ago (2016-11-15 04:25:49 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/164217)
4 years, 1 month ago (2016-11-15 05:17:10 UTC) #23
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/2493003003/40001
4 years, 1 month ago (2016-11-15 05:26:40 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-15 06:47:56 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 06:49:59 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/528e38c9ff62f9eee3ced46ba11f4450e2fd4616
Cr-Commit-Position: refs/heads/master@{#432133}

Powered by Google App Engine
This is Rietveld 408576698