Chromium Code Reviews
DescriptionRemove ShadowRoot::numberOfStyles().
This probably used to be an optimization which made sense when we had
<style scoped> implemented. Now, it should be equally cheap to just
check the ScopedStyleResolver member. The ScopedStyleResolver is null
when there are no active stylesheets in the tree-scope.
This also caused issue 659596 because we only registered style elements
and not link elements, which lead the code to believe there were no
rules to match from the scope when there were only link stylesheets
present.
R=kochi@chromium.org,hayato@chromium.org
BUG=659596
Review-Url: https://codereview.chromium.org/2472613004
Cr-Commit-Position: refs/heads/master@{#429824}
(cherry picked from commit 4215d863dcedd407dc69d31addc731a7bc80a7e8)
Committed: https://chromium.googlesource.com/chromium/src/+/0d29461d46ced2af6740e0a9255a35f0bb8e48d2
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||