DescriptionMaintain child dependent ComputedStyle flags if propagation stops.
There are two non-inherited flags in ComputedStyle which may be set as a
result of calculating the computed style of one of its descendants. Those
are the empty state flag, and the explicit inheritance flag. r190990
optimized propagation of inherited properties, but the mentioned flags
were not properly set if the propagation stopped at an element which had
children that would set these flags.
If a child-dependent flag is set in the old style, and there is no need
to inherit properties, and no children which needs a style recalc, copy
the flags from the old to the new ComputedStyle.
If there is no need to inherit properties, but some child needs a style
recalc, return Inherit to re-compute the child-dependent flags from its
children.
R=timloh@chromium.org,esprehn@chromium.org
BUG=487216
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195462
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|