Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Issue 1721943002: Don't animate a progress bar if it isn't animated (Closed)

Created:
4 years, 10 months ago by Stephen Chennney
Modified:
4 years, 10 months ago
Reviewers:
Xianzhu
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don'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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/NeverFixTests View 1 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutProgress.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutProgress.cpp View 1 2 chunks +11 lines, -1 line 0 comments Download
A third_party/WebKit/Source/core/layout/LayoutProgressTest.cpp View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1721943002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1721943002/1
4 years, 10 months ago (2016-02-22 22:08:31 UTC) #2
Stephen Chennney
I expect to have to revisit this on Mac, to either re-disable the layout test ...
4 years, 10 months ago (2016-02-22 22:08:43 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/25313) android_chromium_gn_compile_dbg on ...
4 years, 10 months ago (2016-02-22 22:13:43 UTC) #5
Xianzhu
https://codereview.chromium.org/1721943002/diff/1/third_party/WebKit/LayoutTests/NeverFixTests File third_party/WebKit/LayoutTests/NeverFixTests (left): https://codereview.chromium.org/1721943002/diff/1/third_party/WebKit/LayoutTests/NeverFixTests#oldcode45 third_party/WebKit/LayoutTests/NeverFixTests:45: [ Mac ] fast/dom/HTMLProgressElement/progress-element.html [ WontFix ] How did ...
4 years, 10 months ago (2016-02-22 23:17:27 UTC) #6
Stephen Chennney
I've updated the test to reflect the comments. https://codereview.chromium.org/1721943002/diff/1/third_party/WebKit/LayoutTests/NeverFixTests File third_party/WebKit/LayoutTests/NeverFixTests (left): https://codereview.chromium.org/1721943002/diff/1/third_party/WebKit/LayoutTests/NeverFixTests#oldcode45 third_party/WebKit/LayoutTests/NeverFixTests:45: [ ...
4 years, 10 months ago (2016-02-23 19:24:02 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1721943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1721943002/20001
4 years, 10 months ago (2016-02-23 19:29:02 UTC) #9
Xianzhu
lgtm
4 years, 10 months ago (2016-02-23 19:47:47 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/184446)
4 years, 10 months ago (2016-02-23 20:57:02 UTC) #12
Stephen Chennney
On 2016/02/23 19:47:47, Xianzhu wrote: > lgtm I'll verify that the Mac test is no ...
4 years, 10 months ago (2016-02-23 21:50:30 UTC) #13
Stephen Chennney
New mac expectation is stable on my machine, so re-enabling that test. Committing with just ...
4 years, 10 months ago (2016-02-24 21:00:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1721943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1721943002/60001
4 years, 10 months ago (2016-02-24 21:06:10 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-24 22:15:47 UTC) #18
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 22:18:08 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4be952b08a2b6634a810432cb0fd501607853164
Cr-Commit-Position: refs/heads/master@{#377405}

Powered by Google App Engine
This is Rietveld 408576698