DescriptionDon't animate a progress bar if it isn't animated
The paint path for HTML Progress elements only uses animated
values if the element is "indeterminant", having no "value"
attribute. Yet the LayoutProgress code was always setting up and
using an animation timer, and requesting paint invalidation
repeatedly, even if the value never changed.
Re-enables a test on Mac that should now pass.
Adds a unit test to verify the timer starts and stops as required.
R=wangxianzhu@chromium.org
BUG=570756
Committed: https://crrev.com/4be952b08a2b6634a810432cb0fd501607853164
Cr-Commit-Position: refs/heads/master@{#377405}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Updated test #Patch Set 3 : Mac expectations #Patch Set 4 : Rebased #
Messages
Total messages: 20 (7 generated)
|