DescriptionDon't cache matched properties for elements without a flat-tree parent.
When there's not flat tree parent for the element we are computing
style for, setHasExplicitlyInheritedProperties will not be set on the
ComputedStyle during property application. Without that flag set
correctly we allowed to add to the matched properties cache even though
we shouldn't.
There are some open questions here:
* How should body -> html propagation work when html has a shadow tree?
* Do children of a shadow host have a computed style at all when not
distributed/slotted?
It should be noted that attachShadow is not allowed on the <html>
element. That is why the test case uses a v0 shadow tree.
R=andersr@opera.com,esprehn@chromium.org,hayato@chromium.org
BUG=636500
Committed: https://crrev.com/fd0e0cc88c441a51c4840945f83442281fbac773
Cr-Commit-Position: refs/heads/master@{#416200}
Patch Set 1 #Patch Set 2 : Trying to mend test failure. #
Total comments: 2
Patch Set 3 : Pass StyleResolverState #
Messages
Total messages: 22 (11 generated)
|