DescriptionRemoved incorrect StyleInvalidator FIXME.
Cloning the RenderStyle, like the FIXME said, is not enough. It would be
true if we only scheduled invalidation sets for classes/ids/... not in the
rightmost compound selector, but we schedule invalidation sets for classes
on the element it needs to invalidate too. Setting class=a on an element
with the style rules below requires us to do a LocalStyleChange on both
'.a' and '.b' in order to apply the first rule as well. For setting
class=x, that wouldn't be necesarry.
.a {}
.a .b {}
.x .y {}
It's possible to optimize that case by adding a flag to the invalidation
set to indicate that the feature the invalidation set is for is present in
the rightmost compound of some selector.
R=chrishtr@chromium.org,esprehn@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184394
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|