DescriptionAvoid looking at invalidation sets in a SubtreeStyleChange subtree
We were matching all the rulesets in a subtree even after finding a ruleset
that would invalidate the whole subtree which is wasted work. We were also
storing all the invalidation sets for an element even after one of them
would have invalidated the entire subtree.
This patch makes us only ever store one invalidation set for an element once
one of them would invalidate the whole subtree. It also removes the
foundInvalidationSet() bit since that's identical to just checking if the
Vector of invalidation sets is non-empty.
I also removed an ASSERT(renderer->style()), all renderers have a style, so
there's no reason to check this.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171417
Patch Set 1 #Patch Set 2 : Better with ASSERT #
Total comments: 1
Patch Set 3 : Add ASSERT #
Messages
Total messages: 12 (0 generated)
|