DescriptionCorrected insertion point style recalc.
When crossing an insertion point boundary from style recalc, we mark the
distributed nodes for subtree style recalc. The reason is that the
distributed nodes will have their style recalculated in the context of
where they are distributed from. In the case below, changing class=a on
content will affect the style of class=b. The invalidation starts on
class=a and will not reach class=b in the invalidation traversal.
The bug was that InsertionPoint::willRecalcStyle had an early return
if the parent style change was at least an Inherit, but that is not the
case if the class change does not affect anything at, or above, the
insertion point, like in the case below.
<div>
<:shadow-root>
<style>.a::content .b { ... }</style>
<content class="a"></content>
</:shadow-root>
<div class="b"></div>
</div>
R=esprehn@chromium.org,chrishtr@chromium.org
BUG=423293
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183844
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|