DescriptionOnly match style from element's TreeScope for normal rules.
We collected all scoped resolvers up to the document resolver while
collecting normal style rules. That was necessary for <style scoped>, but
now that all scoping is done through shadow roots, only boundary crossing
rules can match from other author style scopes. Those rules are handled
through the global TreeBoundaryCrossingRules.
Instead, collect using the ScopedStyleResolver for the element's tree
scope if present. The need for CascadeScope disappears, so it's been
removed.
There is an exception for custom pseudo elements and VTT elements (styled
through ::cue) since those rules are crossing a shadow boundary, yet not
handled as part of boundary crossing rules. I chose to do the special
handling instead of start adding them to the boundary crossing rules
since the boundary crossing rule handling is about to change as part of
401359 anyway, and the special handling is safer since it's closer to the
previous behavior.
R=hayato@chromium.org
BUG=401359
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188292
Patch Set 1 #Patch Set 2 : Fixed custom pseudo and ::cue regressions #Messages
Total messages: 20 (4 generated)
|