DescriptionUse invalidation sets for :in-range and :out-of-range.
Gets rid of a SubtreeStyleChange which relies on sibling tree recalcs.
The changes in expectations for video-mute-repaint.html and
video-unmute-repaint.html are due to the following facts:
* We used to do SubtreeStyleChange for an input whose value changed.
* The video controls have input elements in the UA shadow which are
modified when the volume is changed.
* Doing the recalc of the input means calling Element::recalcStyle on the
ancestor chain, which includes the video element, just to reach the
descendants which need to be recalculated.
* HTMLMediaElement has a didRecalcStyle, which will call updateFromElement
for LayoutVideo, which in turn does an unconditional
setShouldDoFullPaintInvalidation.
* Since the whole SubtreeStyleChange -> recalc is gone for the mentioned
tests, the paint invalidation for LayoutVideo is gone, hence the test
expectation changes.
R=tkent@chromium.org
BUG=557440
Committed: https://crrev.com/aa8e58a3274d31c25d15f909a2a9190149856b9b
Cr-Commit-Position: refs/heads/master@{#361601}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fixed review issue and expected results #
Messages
Total messages: 20 (6 generated)
|