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

Issue 173523003: Make clearing the animated type at the end of an interval more robust (Closed)

Created:
6 years, 10 months ago by fs
Modified:
6 years, 9 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), rwlbuis, dstockwell, Timothy Loh, krit, f(malita), gyuyoung.kim_webkit.org, darktears, Stephen Chennney, Steve Block, dino_apple.com, pdr., Eric Willigers
Visibility:
Public.

Description

Make clearing the animated type at the end of an interval more robust When an interval of a timed element ends, and said timed element will no longer contribute to the target element, the animator of the timed element needs to stopped, and it's state cleared (so that another timed element may assume that role). With "linked" syncbases involved, the end of one interval would trigger a new interval, which in turn allowed resolving yet another interval - which end up signaling a restart. Fix by tightening the condition when maybeRestartInterval() returns by checking if the newly resolved interval is active. Also attempt to make the condition for when to clear the animator more robust by checking if the timed element is no longer contributing to the target using |animationIsContributing|, rather trying to re-deduce it from the active-state transition + restart (which would observe 'active' -> 'in-active' + restart in this case.) (Either one of these fix the issue.) BUG=344408 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167822

Patch Set 1 #

Total comments: 2

Patch Set 2 : Drop explicit timeout in TC. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
A LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html View 1 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/svg/animations/animateTransform-circular-linked-syncbases-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/svg/animation/SVGSMILElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
fs
6 years, 10 months ago (2014-02-20 16:19:04 UTC) #1
Stephen Chennney
I'm happy but I would like Philip to OK it. At first I thought this ...
6 years, 10 months ago (2014-02-20 19:33:19 UTC) #2
fs
On 2014/02/20 19:33:19, Stephen Chenney wrote: > I'm happy but I would like Philip to ...
6 years, 10 months ago (2014-02-21 17:11:16 UTC) #3
pdr.
LGTM, nice patch (as always!) https://codereview.chromium.org/173523003/diff/1/LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html File LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html (right): https://codereview.chromium.org/173523003/diff/1/LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html#newcode31 LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html:31: var timeoutTimer = setTimeout(checkResult, ...
6 years, 9 months ago (2014-02-25 17:47:39 UTC) #4
fs
https://codereview.chromium.org/173523003/diff/1/LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html File LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html (right): https://codereview.chromium.org/173523003/diff/1/LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html#newcode31 LayoutTests/svg/animations/animateTransform-circular-linked-syncbases.html:31: var timeoutTimer = setTimeout(checkResult, 1000); On 2014/02/25 17:47:39, pdr ...
6 years, 9 months ago (2014-02-25 18:02:29 UTC) #5
fs
The CQ bit was checked by fs@opera.com
6 years, 9 months ago (2014-02-25 18:08:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/173523003/100001
6 years, 9 months ago (2014-02-25 18:08:24 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-02-25 20:51:50 UTC) #8
Message was sent while issue was closed.
Change committed as 167822

Powered by Google App Engine
This is Rietveld 408576698