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

Issue 210713002: Implement ::shadow pseudo element and replace /shadow/ with ::shadow. (Closed)

Created:
6 years, 9 months ago by tasak
Modified:
6 years, 9 months ago
Reviewers:
dglazkov, rune
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Implement ::shadow pseudo element and replace /shadow/ with ::shadow. If an element has at least one shadow tree, the ::shadow pseudo-element matches the shadow roots themselves. c.f. Shadow DOM styling spec: http://drafts.csswg.org/css-scoping/#shadow-pseudoelement The new spec doesn't support /shadow/ combinator. Instead, it supports ::shadow. BUG=355954 TEST=fast/dom/shadow/content-pseudo-element-with-hat.html,fast/dom/shadow/querySelector-for-multiple-shadowroots.html,fast/dom/shadow/querySelector-for-useragent-shadowroot.html,fast/dom/shadow/querySelector-with-shadow-all-and-shadow-deep.html,fast/dom/shadow/style-with-hat.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170131

Patch Set 1 #

Patch Set 2 : Fixed targeted-class-shadow-combinator.html regression #

Patch Set 3 : Fixed patch conflict #

Total comments: 11

Patch Set 4 : #

Patch Set 5 : Fixed "::shadow >" bug #

Patch Set 6 : #

Patch Set 7 : Fixed patch conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -166 lines) Patch
M LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator.html View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/content-pseudo-element-with-hat.html View 5 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/shadow/content-pseudo-element-with-hat-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/dynamically-added-cat-hat-rules.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots.html View 1 2 3 1 chunk +20 lines, -20 lines 0 comments Download
M LayoutTests/fast/dom/shadow/querySelector-for-multiple-shadowroots-expected.txt View 1 2 3 1 chunk +17 lines, -17 lines 0 comments Download
M LayoutTests/fast/dom/shadow/querySelector-for-useragent-shadowroot.html View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/fast/dom/shadow/querySelector-for-useragent-shadowroot-expected.txt View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/fast/dom/shadow/querySelector-with-shadow-all-and-shadow-deep.html View 1 2 3 3 chunks +22 lines, -22 lines 0 comments Download
M LayoutTests/fast/dom/shadow/querySelector-with-shadow-all-and-shadow-deep-expected.txt View 1 2 3 1 chunk +22 lines, -22 lines 0 comments Download
M LayoutTests/fast/dom/shadow/style-and-shadow-element.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/style-with-hat.html View 1 2 3 4 5 6 16 chunks +66 lines, -24 lines 0 comments Download
M LayoutTests/fast/dom/shadow/style-with-hat-expected.txt View 1 2 3 4 5 6 1 chunk +9 lines, -1 line 0 comments Download
M Source/core/css/CSSGrammar.y View 1 2 3 4 5 6 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/css/CSSParserValues.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSSelector.h View 1 2 3 4 5 6 4 chunks +10 lines, -6 lines 0 comments Download
M Source/core/css/CSSSelector.cpp View 1 2 3 4 5 6 4 chunks +3 lines, -2 lines 0 comments Download
M Source/core/css/CSSSelectorList.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSSelectorList.cpp View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/css/RuleFeature.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/css/RuleSet.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/SelectorChecker.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/SelectorChecker.cpp View 1 2 3 4 5 6 chunks +31 lines, -4 lines 0 comments Download
M Source/core/css/SelectorFilter.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/BisonCSSParser-in.cpp View 1 2 3 4 5 6 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/dom/SelectorQuery.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
tasak
Would you review this CL?
6 years, 9 months ago (2014-03-25 10:58:55 UTC) #1
dglazkov
lgtm, though the code quality isn't there yet. https://codereview.chromium.org/210713002/diff/60001/LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator-expected.txt File LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator-expected.txt (right): https://codereview.chromium.org/210713002/diff/60001/LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator-expected.txt#newcode1 LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator-expected.txt:1: Check ...
6 years, 9 months ago (2014-03-25 17:10:53 UTC) #2
rune
On 2014/03/25 17:10:53, dglazkov wrote: > https://codereview.chromium.org/210713002/diff/60001/Source/core/css/CSSSelector.h > File Source/core/css/CSSSelector.h (right): > > https://codereview.chromium.org/210713002/diff/60001/Source/core/css/CSSSelector.h#newcode131 > ...
6 years, 9 months ago (2014-03-25 20:57:56 UTC) #3
rune
https://codereview.chromium.org/210713002/diff/60001/Source/core/css/SelectorChecker.cpp File Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/210713002/diff/60001/Source/core/css/SelectorChecker.cpp#newcode159 Source/core/css/SelectorChecker.cpp:159: return SelectorFailsLocally; You're just checking for isInShadowTree(). Won't that ...
6 years, 9 months ago (2014-03-25 20:58:21 UTC) #4
tasak
Thank you for reviewing. So is it ok to replace all Element* in SelectorChecker with ...
6 years, 9 months ago (2014-03-26 11:01:45 UTC) #5
dglazkov
lgtm. Let's not forget to keep iterating on this code.
6 years, 9 months ago (2014-03-26 16:40:24 UTC) #6
tasak
Thank you for reviewing. On 2014/03/26 16:40:24, dglazkov wrote: > lgtm. Let's not forget to ...
6 years, 9 months ago (2014-03-27 03:08:53 UTC) #7
tasak
The CQ bit was checked by tasak@google.com
6 years, 9 months ago (2014-03-27 03:08:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/210713002/330001
6 years, 9 months ago (2014-03-27 03:09:03 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-03-27 04:21:27 UTC) #10
Message was sent while issue was closed.
Change committed as 170131

Powered by Google App Engine
This is Rietveld 408576698