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
Committed: https://crrev.com/4215d863dcedd407dc69d31addc731a7bc80a7e8
Cr-Commit-Position: refs/heads/master@{#429824}
Patch Set 1 #Patch Set 2 : Rebased #
Dependent Patchsets: Messages
Total messages: 17 (12 generated)
|