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

Issue 1565263003: Implement CSS parser part for ::slotted pseudo element (Closed)

Created:
4 years, 11 months ago by kochi
Modified:
4 years, 11 months ago
Reviewers:
Timothy Loh, rune
CC:
chromium-reviews, caseq+blink_chromium.org, blink-reviews-css, devtools-reviews_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org, rwlbuis, hayato
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement CSS parser part for ::slotted pseudo element This CL is split off of https://codereview.chromium.org/1523843004/ Implements ::slotted() pseudo element, whose spec is discussed at https://github.com/w3c/webcomponents/issues/331 for Shadow DOM v1. BUG=531990 TEST=fast/dom/shadow/slotted-pseudo-element-css-text.html Committed: https://crrev.com/5dc8704a6c571f65f3d00731da773c2c5ebd8f2e Cr-Commit-Position: refs/heads/master@{#370358}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Address rune's first round of comments in layout test. #

Total comments: 10

Patch Set 4 : Addressed comments #

Patch Set 5 : rebase #

Patch Set 6 : rebase on rune's change #

Total comments: 8

Patch Set 7 : wip rebase (still uses ShadowSlot combinator) #

Patch Set 8 : rebase #

Patch Set 9 : addressed comments in PS6. #

Total comments: 2

Patch Set 10 : merge ::slotted checking in needsImplicitShadowCombinatorForMatching() #

Patch Set 11 : rebase, fix layout test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -16 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +65 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.h View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelector.cpp View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelectorList.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSSelectorList.cpp View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.cpp View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/SelectorFilter.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserSelector.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +25 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (9 generated)
kochi
Tim, Could you take a look at this? Rune, For the "cssText" layout test I ...
4 years, 11 months ago (2016-01-13 07:48:31 UTC) #3
rune
https://codereview.chromium.org/1565263003/diff/40001/third_party/WebKit/Source/core/css/CSSSelector.cpp File third_party/WebKit/Source/core/css/CSSSelector.cpp (right): https://codereview.chromium.org/1565263003/diff/40001/third_party/WebKit/Source/core/css/CSSSelector.cpp#newcode486 third_party/WebKit/Source/core/css/CSSSelector.cpp:486: case PseudoSlotted: The selectors are web-facing in the sense ...
4 years, 11 months ago (2016-01-13 09:59:09 UTC) #4
kochi
Rune, thanks for the review! You mentioned we can go without ShadowSlot combinator in the ...
4 years, 11 months ago (2016-01-14 09:02:20 UTC) #5
rune
https://codereview.chromium.org/1565263003/diff/100001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html File third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html (right): https://codereview.chromium.org/1565263003/diff/100001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html#newcode43 third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html:43: "*::slotted(*) { display: block; }", I thought the '*' ...
4 years, 11 months ago (2016-01-15 11:01:16 UTC) #6
kochi
I tried removing ShadowSlot implicit combinator, but so far the change will be no simpler ...
4 years, 11 months ago (2016-01-19 07:25:56 UTC) #7
kochi
Tim, could you also take a look?
4 years, 11 months ago (2016-01-19 07:33:15 UTC) #8
rune
On 2016/01/19 07:25:56, kochi wrote: > I tried removing ShadowSlot implicit combinator, but > so ...
4 years, 11 months ago (2016-01-19 09:08:28 UTC) #9
rune
lgtm https://codereview.chromium.org/1565263003/diff/100001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html File third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html (right): https://codereview.chromium.org/1565263003/diff/100001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html#newcode43 third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html:43: "*::slotted(*) { display: block; }", On 2016/01/19 07:25:56, ...
4 years, 11 months ago (2016-01-19 09:16:09 UTC) #10
kochi
https://codereview.chromium.org/1565263003/diff/100001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html File third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html (right): https://codereview.chromium.org/1565263003/diff/100001/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html#newcode58 third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html:58: "::slotted(span)::slotted(span) { color: red; }" On 2016/01/19 09:16:09, rune ...
4 years, 11 months ago (2016-01-19 11:09:12 UTC) #11
rune
On 2016/01/19 09:16:09, rune wrote: > It's not expected as "*::before" is serialized as "::before", ...
4 years, 11 months ago (2016-01-19 14:14:39 UTC) #12
Timothy Loh
lgtm
4 years, 11 months ago (2016-01-20 00:02:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1565263003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1565263003/180001
4 years, 11 months ago (2016-01-20 02:13:42 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/145061) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-20 02:45:47 UTC) #18
kochi
On 2016/01/20 02:45:47, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 11 months ago (2016-01-20 05:53:57 UTC) #19
rune
On 2016/01/20 05:53:57, kochi wrote: > On 2016/01/20 02:45:47, commit-bot: I haz the power wrote: ...
4 years, 11 months ago (2016-01-20 08:15:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1565263003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1565263003/200001
4 years, 11 months ago (2016-01-20 08:22:47 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 11 months ago (2016-01-20 10:13:59 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 10:15:40 UTC) #27
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5dc8704a6c571f65f3d00731da773c2c5ebd8f2e
Cr-Commit-Position: refs/heads/master@{#370358}

Powered by Google App Engine
This is Rietveld 408576698