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

Issue 2613213002: Support Style Sharing for Shadow DOM V1 (Closed)

Created:
3 years, 11 months ago by kochi
Modified:
3 years, 11 months ago
Reviewers:
rune
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support Style Sharing for Shadow DOM V1 Style sharing has been disabled for Shadow DOM v1 slotted elements, but should be enabled. There used to be a bug that ::slotted([attr]) rules did not properly prevent styles from being shared and falsely shared. This was because the ::slotted() rule did not match those elements which should and they were not rejected for style sharing. This CL fixes the bug to enable style sharing in Shadow DOM v1 slotted elements and implement a function to check if style can be shared between those elements. BUG=671319 TEST=LayoutTests/shadow-dom/slotted-pseudo-element-shared-style.html Review-Url: https://codereview.chromium.org/2613213002 Cr-Commit-Position: refs/heads/master@{#443785} Committed: https://chromium.googlesource.com/chromium/src/+/92740ea13dcbe5af5afcbb84949d142e82ff6c6d

Patch Set 1 : expected failure in shadow-dom/slotted-pseudo-* #

Patch Set 2 : fix unit test #

Patch Set 3 : (tentative - wip) #

Patch Set 4 : improve check #

Total comments: 3

Patch Set 5 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -8 lines) Patch
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp View 1 2 3 4 3 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (19 generated)
rune
https://codereview.chromium.org/2613213002/diff/60001/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/2613213002/diff/60001/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode122 third_party/WebKit/Source/core/css/SelectorChecker.cpp:122: return context.element->assignedSlot(); Not sure I understand this one. This ...
3 years, 11 months ago (2017-01-11 11:34:27 UTC) #13
kochi
On 2017/01/11 11:34:27, rune wrote: > https://codereview.chromium.org/2613213002/diff/60001/third_party/WebKit/Source/core/css/SelectorChecker.cpp > File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): > > https://codereview.chromium.org/2613213002/diff/60001/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode122 > ...
3 years, 11 months ago (2017-01-12 09:23:17 UTC) #14
kochi
PTAL https://codereview.chromium.org/2613213002/diff/60001/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/2613213002/diff/60001/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode122 third_party/WebKit/Source/core/css/SelectorChecker.cpp:122: return context.element->assignedSlot(); On 2017/01/11 11:34:27, rune wrote: > ...
3 years, 11 months ago (2017-01-13 10:46:45 UTC) #17
rune
lgtm
3 years, 11 months ago (2017-01-13 11:34:41 UTC) #20
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/2613213002/80001
3 years, 11 months ago (2017-01-14 04:07:06 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 04:18:49 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/92740ea13dcbe5af5afcbb84949d...

Powered by Google App Engine
This is Rietveld 408576698