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

Issue 2824853004: Scopeless matching of :host rules for style sharing. (Closed)

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

Description

Scopeless matching of :host rules for style sharing. The kSharingRules mode for selector matching needs to bypass scope checking in various places because we match selectors from the set of global uncommon attribute rules for which the source scope is unknown. We should really store these rules per scope, at least for Shadow DOM v1, and pass the correct scope for matching. BUG=711539 Review-Url: https://codereview.chromium.org/2824853004 Cr-Commit-Position: refs/heads/master@{#465980} Committed: https://chromium.googlesource.com/chromium/src/+/0e2caa4b6dc7715e9d08e77f46e1dcdf28825405

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -5 lines) Patch
M third_party/WebKit/Source/core/css/ElementRuleCollector.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/SelectorChecker.cpp View 3 chunks +12 lines, -2 lines 4 comments Download
M third_party/WebKit/Source/core/css/resolver/MatchRequest.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp View 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
rune
ptal
3 years, 8 months ago (2017-04-18 23:12:57 UTC) #6
kochi
(first round comment only, will take closer look tomorrow) https://codereview.chromium.org/2824853004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/2824853004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode344 third_party/WebKit/Source/core/css/SelectorChecker.cpp:344: ...
3 years, 8 months ago (2017-04-19 10:21:12 UTC) #7
rune
https://codereview.chromium.org/2824853004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/2824853004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode344 third_party/WebKit/Source/core/css/SelectorChecker.cpp:344: for (next_context.element = ParentElement(next_context); On 2017/04/19 10:21:12, kochi wrote: ...
3 years, 8 months ago (2017-04-19 22:49:47 UTC) #8
kochi
Thanks for the explanation. LGTM https://codereview.chromium.org/2824853004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp File third_party/WebKit/Source/core/css/SelectorChecker.cpp (right): https://codereview.chromium.org/2824853004/diff/1/third_party/WebKit/Source/core/css/SelectorChecker.cpp#newcode344 third_party/WebKit/Source/core/css/SelectorChecker.cpp:344: for (next_context.element = ParentElement(next_context); ...
3 years, 8 months ago (2017-04-20 10:45:21 UTC) #9
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/2824853004/1
3 years, 8 months ago (2017-04-20 10:52:31 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 12:21:06 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0e2caa4b6dc7715e9d08e77f46e1...

Powered by Google App Engine
This is Rietveld 408576698