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

Issue 2500813003: Parser support for >>> (shadow-piercing descendant) combinator. (Closed)

Created:
4 years, 1 month ago by kochi
Modified:
4 years, 1 month ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Parser support for >>> (shadow-piercing descendant) combinator. '>>>' (shadow-piercing descendant) can only be parsed in static profile. The parsing is guarded by a runtime enabled flag. Matching part is done in the next CL: https://codereview.chromium.org/2496123002/ BUG=633007 Committed: https://crrev.com/69635dc029d7ce77e7db12669a994295d5f93952 Cr-Commit-Position: refs/heads/master@{#433133}

Patch Set 1 #

Patch Set 2 : fix compiler warnings #

Patch Set 3 : Guard by RuntimeEnabledFeatures. #

Patch Set 4 : add unit tests #

Total comments: 2

Patch Set 5 : Add an invalid selector test for static profile. #

Total comments: 4

Patch Set 6 : Address timloh's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -11 lines) Patch
M third_party/WebKit/Source/core/css/CSSSelector.h View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/SelectorFilter.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserMode.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserMode.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp View 1 2 3 4 5 1 chunk +23 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (23 generated)
kochi
PTAL Tim, is it better to recognize '>>>' as a single token?
4 years, 1 month ago (2016-11-14 08:41:57 UTC) #6
rune
On 2016/11/14 08:41:57, kochi wrote: > PTAL > > Tim, is it better to recognize ...
4 years, 1 month ago (2016-11-14 10:17:19 UTC) #9
kochi
On 2016/11/14 10:17:19, rune wrote: > On 2016/11/14 08:41:57, kochi wrote: > > PTAL > ...
4 years, 1 month ago (2016-11-14 14:08:59 UTC) #10
hayato
I prefer '>>>' as a single token. '>/**/>>' should not be considered as a '>>>', ...
4 years, 1 month ago (2016-11-15 02:29:11 UTC) #11
Timothy Loh
On 2016/11/15 02:29:11, hayato wrote: > I prefer '>>>' as a single token. '>/**/>>' should ...
4 years, 1 month ago (2016-11-15 02:45:38 UTC) #12
kochi
On 2016/11/15 02:45:38, Timothy Loh wrote: > On 2016/11/15 02:29:11, hayato wrote: > > I ...
4 years, 1 month ago (2016-11-15 04:03:43 UTC) #13
kochi
As far as I tested, Safari TP supports '>>' descendant combinator, and it allows '>/**/>'. ...
4 years, 1 month ago (2016-11-15 08:14:15 UTC) #19
rune
I agree it makes sense to add a new token to the spec. My comment ...
4 years, 1 month ago (2016-11-15 08:19:01 UTC) #21
kochi
On 2016/11/15 08:19:01, rune wrote: > I agree it makes sense to add a new ...
4 years, 1 month ago (2016-11-15 08:26:28 UTC) #22
rune
Adding Tab.
4 years, 1 month ago (2016-11-15 09:09:01 UTC) #24
kochi
Rune, let us continue the current way (allow '>>/**/>') so this won't be blocked on ...
4 years, 1 month ago (2016-11-17 05:10:23 UTC) #27
rune
lgtm https://codereview.chromium.org/2500813003/diff/80001/third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp File third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp (right): https://codereview.chromium.org/2500813003/diff/80001/third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp#newcode298 third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp:298: {"div >/**/>/**/> span", "div >>> span"}}; Could you ...
4 years, 1 month ago (2016-11-17 09:21:43 UTC) #28
kochi
Thanks for the review! https://codereview.chromium.org/2500813003/diff/80001/third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp File third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp (right): https://codereview.chromium.org/2500813003/diff/80001/third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp#newcode298 third_party/WebKit/Source/core/css/parser/CSSSelectorParserTest.cpp:298: {"div >/**/>/**/> span", "div >>> ...
4 years, 1 month ago (2016-11-17 10:35:38 UTC) #29
kochi
Tim, PTAL?
4 years, 1 month ago (2016-11-17 10:36:16 UTC) #30
Timothy Loh
lgtm https://codereview.chromium.org/2500813003/diff/100001/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp File third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp (right): https://codereview.chromium.org/2500813003/diff/100001/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp#newcode613 third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp:613: if (delimiter == '~') Reads a bit weirdly, ...
4 years, 1 month ago (2016-11-17 14:44:15 UTC) #31
kochi
Thanks for the review! https://codereview.chromium.org/2500813003/diff/100001/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp File third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp (right): https://codereview.chromium.org/2500813003/diff/100001/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp#newcode613 third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp:613: if (delimiter == '~') On ...
4 years, 1 month ago (2016-11-18 02:28:45 UTC) #32
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/2500813003/120001
4 years, 1 month ago (2016-11-18 02:30:05 UTC) #35
kochi
tkent-san, could you review for Source/platform?
4 years, 1 month ago (2016-11-18 03:32:11 UTC) #37
tkent
lgtm
4 years, 1 month ago (2016-11-18 03:33:38 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/334676)
4 years, 1 month ago (2016-11-18 04:19:27 UTC) #40
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/2500813003/120001
4 years, 1 month ago (2016-11-18 04:55:13 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 1 month ago (2016-11-18 06:35:57 UTC) #44
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 06:41:30 UTC) #46
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/69635dc029d7ce77e7db12669a994295d5f93952
Cr-Commit-Position: refs/heads/master@{#433133}

Powered by Google App Engine
This is Rietveld 408576698