DescriptionAvoid unnecessary invalidation scheduling.
We skip scheduling invalidation sets for an element when:
* StyleResolver is null
* Element is not inActiveDocument()
* Element does not have a parent
* Element parent has SubtreeStyleChange or ReattachStyleChange
Additionally we skip descendant invalidations when:
* Element has SubtreeStyleChange or ReattachStyleChange
and sibling invalidations when:
* Element.nextSibling is null
Removed an unnecessary SubtreeStyleChange when StyleResolver is null for
attribute changes.
BUG=557440
Committed: https://crrev.com/0d735b3ac72c85222599617a0aae571eb8f9170e
Cr-Commit-Position: refs/heads/master@{#365188}
Patch Set 1 #Patch Set 2 : Don't do style invalidation in import documents #
Total comments: 4
Patch Set 3 : Removed unnecessary isMaster check #
Messages
Total messages: 24 (11 generated)
|