Remove rulesets used for style sharing.
After style sharing code is removed, we no longer need the sibling and uncommon attribute rulesets to reject style sharing. This also means RuleFeatureSet no longer needs to be traced, so some oilpan cruft could be removed. The StyleEngine API UsesSiblingRules() relied on the size of the sibling ruleset, but it was only used as what looked like an optimization for :empty selector updates where :empty is found in non-rightmost compound selectors. However, the presence of :empty itself would add a sibling selector in the previous code, and :empty in non-rightmost compound not followed by an adjacent selector would only have de-generate cases like ":empty span" which could never match anything, or ":not(:empty) span" which would always be true if the whole selector matches. Therefore, it makes sense to just drop the API/check. Bug: 721517 Change-Id: I85100850cb8cec56b17947916d7755ebcf3f15ec Reviewed-on: https://chromium-review.googlesource.com/597689Reviewed-by:nainar <nainar@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@opera.com> Commit-Queue: Rune Lillesveen <rune@opera.com> Cr-Commit-Position: refs/heads/master@{#491344}
Showing
Please register or sign in to comment