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

Issue 1270313002: Handle closed mode shadow for /deep/ and ::shadow selectors (Closed)

Created:
5 years, 4 months ago by kochi
Modified:
5 years, 4 months ago
Reviewers:
hayato
CC:
blink-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Handle closed mode shadow for /deep/ and ::shadow selectors For closed shadow roots, /deep/ combinator or ::shadow pseudo element should not pierce the closed shadow root boundary. BUG=459136 TEST=closed-shadow-and-deep-combinator.html, closed-mode-deep-combinators.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200909

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 16

Patch Set 4 : fix for comment21 #

Patch Set 5 : add a layout test for 2 /deep/s #

Total comments: 8

Patch Set 6 : fix for comment29 #

Total comments: 6

Patch Set 7 : fix for comment35 #

Patch Set 8 : Rename function as suggested for land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -1 line) Patch
A LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html View 1 2 3 4 5 1 chunk +154 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo-expected.txt View 1 2 3 4 5 1 chunk +101 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/closed-mode-deep-combinators-expected.txt View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/css/SelectorChecker.cpp View 1 2 3 4 5 6 7 3 chunks +12 lines, -1 line 0 comments Download
M Source/core/css/resolver/SharedStyleFinder.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1270313002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1270313002/60001
5 years, 4 months ago (2015-08-05 10:17:08 UTC) #5
kochi
PTAL
5 years, 4 months ago (2015-08-05 10:17:23 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-05 11:19:05 UTC) #9
hayato
I think this CL is not correct. https://codereview.chromium.org/1270313002/diff/60001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html (right): https://codereview.chromium.org/1270313002/diff/60001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html#newcode27 LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html:27: <div id="div1"> ...
5 years, 4 months ago (2015-08-06 02:26:52 UTC) #10
kochi
On 2015/08/06 02:26:52, hayato wrote: > I think this CL is not correct. > > ...
5 years, 4 months ago (2015-08-10 12:41:59 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1270313002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1270313002/140001
5 years, 4 months ago (2015-08-18 11:53:56 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-18 12:55:09 UTC) #17
kochi
Sorry for the delay to update the CL. Could you take another look?
5 years, 4 months ago (2015-08-19 04:25:56 UTC) #19
kochi
PTAL https://codereview.chromium.org/1270313002/diff/60001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html (right): https://codereview.chromium.org/1270313002/diff/60001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html#newcode27 LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html:27: <div id="div1"> On 2015/08/06 02:26:52, hayato wrote: > ...
5 years, 4 months ago (2015-08-19 04:30:27 UTC) #20
hayato
https://codereview.chromium.org/1270313002/diff/160001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html (right): https://codereview.chromium.org/1270313002/diff/160001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html#newcode1 LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html:1: <!doctype html> Could you add a test for a ...
5 years, 4 months ago (2015-08-19 05:45:25 UTC) #21
kochi
PTAL https://codereview.chromium.org/1270313002/diff/160001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html (right): https://codereview.chromium.org/1270313002/diff/160001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html#newcode1 LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html:1: <!doctype html> On 2015/08/19 05:45:24, hayato wrote: > ...
5 years, 4 months ago (2015-08-19 07:33:55 UTC) #22
kochi
added a layout test. PTAL. https://codereview.chromium.org/1270313002/diff/160001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html (right): https://codereview.chromium.org/1270313002/diff/160001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html#newcode1 LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html:1: <!doctype html> On 2015/08/19 ...
5 years, 4 months ago (2015-08-19 07:52:45 UTC) #23
kochi
5 years, 4 months ago (2015-08-19 07:52:52 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1270313002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1270313002/200001
5 years, 4 months ago (2015-08-19 09:12:18 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/121584)
5 years, 4 months ago (2015-08-19 09:20:12 UTC) #28
hayato
https://codereview.chromium.org/1270313002/diff/160001/Source/core/css/resolver/SharedStyleFinder.cpp File Source/core/css/resolver/SharedStyleFinder.cpp (right): https://codereview.chromium.org/1270313002/diff/160001/Source/core/css/resolver/SharedStyleFinder.cpp#newcode269 Source/core/css/resolver/SharedStyleFinder.cpp:269: ShadowRoot* root1 = element().containingShadowRoot(); On 2015/08/19 07:33:54, Takayoshi Kochi ...
5 years, 4 months ago (2015-08-20 03:47:11 UTC) #29
kochi
Thanks for the comments. PTAL https://codereview.chromium.org/1270313002/diff/200001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html (right): https://codereview.chromium.org/1270313002/diff/200001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html#newcode121 LayoutTests/fast/dom/shadow/closed-mode-deep-combinator-and-shadow-pseudo.html:121: shouldBe('host_open_open.querySelectorAll("div /deep/ div").length', '3'); ...
5 years, 4 months ago (2015-08-20 06:04:26 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1270313002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1270313002/220001
5 years, 4 months ago (2015-08-20 06:06:44 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/58115)
5 years, 4 months ago (2015-08-20 06:57:50 UTC) #34
hayato
https://codereview.chromium.org/1270313002/diff/200001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html (right): https://codereview.chromium.org/1270313002/diff/200001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html#newcode41 LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html:41: 'closedhost' You are right. My bad. :( Maybe the ...
5 years, 4 months ago (2015-08-20 07:09:59 UTC) #35
kochi
PTAL https://codereview.chromium.org/1270313002/diff/200001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html File LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html (right): https://codereview.chromium.org/1270313002/diff/200001/LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html#newcode41 LayoutTests/fast/dom/shadow/closed-mode-deep-combinators.html:41: 'closedhost' On 2015/08/20 07:09:59, hayato wrote: > You ...
5 years, 4 months ago (2015-08-20 07:32:50 UTC) #36
hayato
lgtm https://codereview.chromium.org/1270313002/diff/220001/Source/core/css/SelectorChecker.cpp File Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/1270313002/diff/220001/Source/core/css/SelectorChecker.cpp#newcode312 Source/core/css/SelectorChecker.cpp:312: static inline Element* parentOrOpenShadowHostElement(const Element* element) On 2015/08/20 ...
5 years, 4 months ago (2015-08-20 10:16:29 UTC) #37
kochi
On 2015/08/20 10:16:29, hayato wrote: > lgtm > > https://codereview.chromium.org/1270313002/diff/220001/Source/core/css/SelectorChecker.cpp > File Source/core/css/SelectorChecker.cpp (right): > ...
5 years, 4 months ago (2015-08-20 10:23:34 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1270313002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1270313002/260001
5 years, 4 months ago (2015-08-20 10:24:17 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/95945)
5 years, 4 months ago (2015-08-20 13:19:19 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1270313002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1270313002/260001
5 years, 4 months ago (2015-08-20 15:05:58 UTC) #45
commit-bot: I haz the power
5 years, 4 months ago (2015-08-20 16:11:06 UTC) #46
Message was sent while issue was closed.
Committed patchset #8 (id:260001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200909

Powered by Google App Engine
This is Rietveld 408576698