DescriptionClear baseComputedStyle when text-autosizing changes.
baseComputedStyle is an optimization for animations where the computed
style before animations are applied is cached and cloned to have
cheaper style recalcs for per-frame animation changes. An assumption is
that the computed style for the layout object only changes in
styleForElement or pseudoStyleForElement. That assumption is not true
for text autosizing as the computed style may be changed during layout.
Then, for the next animation frame, the text autosizing factor may be
different even though the style has not been marked for recalc, and the
sanity check for an unchanged baseComputedStyle will trigger an assert.
Make sure we clear the baseComputedStyle for an element when the text
autosizing factor changes.
R=pdr@chromium.org,drott@chromium.org
BUG=596018
Committed: https://crrev.com/32a7b19e92a9ff0fca3aba45c1fdd3896fdd5f1d
Cr-Commit-Position: refs/heads/master@{#382350}
Patch Set 1 #
Messages
Total messages: 12 (4 generated)
|