DescriptionRecalc sibling styles for forward positional rules on mutations only.
Forward positional rules only affect selector matching of siblings when
nodes are added to or removed from the DOM. However, selectors with indirect
adjacent combinators may affect sibling evaluation without node addition or
removal. For instance if a class selector left of an indirect adjacent
combinator is set on an element.
Since the indirect adjacent combinator was considered as a forward
positional rule, we were recalculating sibling styles in the presence of an
nth-selector. We now split indirect adjacent selector matching as a separate
flag to be able to optimize recalc in the presence if nth-selectors and
skip sibling recalc for forward positional rules if no mutations happened.
ElementRareData and ShadowRootRareData do not increase in size since they
were already padded in the relevant parts.
R=ojan
BUG=160212
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169471
Patch Set 1 #Patch Set 2 : Rebased. #
Total comments: 2
Patch Set 3 : Rebase. #Patch Set 4 : Fixed review issue. #
Messages
Total messages: 11 (0 generated)
|