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

Issue 107083007: Reset SVGAnimationElement values animation state on attribute changes (Closed)

Created:
7 years ago by fs
Modified:
6 years, 11 months ago
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), rwlbuis, dstockwell, Timothy Loh, krit, f(malita), darktears, pdr, Stephen Chennney, Steve Block, dino_apple.com, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Reset SVGAnimationElement values animation state on attribute changes If the animation element is moved in the DOM, and it is a 'values' animation, then m_lastValuesAnimation{From,To} would not be reset, which could mean that if the current from/to values matched those prior to the move (reinsertion), calculateFromAndtoValues would not be called, and the SVGAnimateElement::m_{from,to}Type values would not be initialized, and hence cause a crash when trying to compute the animated value. BUG=329822 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164599

Patch Set 1 #

Total comments: 1

Patch Set 2 : Lower TC pass timeout. #

Patch Set 3 : 0ms timeout for pass. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, --1 lines) Patch
A LayoutTests/svg/animations/animate-element-reinserted-crash.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/svg/animations/animate-element-reinserted-crash-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/svg/SVGAnimationElement.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
fs
PTAL. Scrutiny on the TC would be most appreciated.
7 years ago (2013-12-20 11:29:01 UTC) #1
davve
Aside from TC time-out, a non-owner lgtm. https://codereview.chromium.org/107083007/diff/1/LayoutTests/svg/animations/animate-element-reinserted-crash.html File LayoutTests/svg/animations/animate-element-reinserted-crash.html (right): https://codereview.chromium.org/107083007/diff/1/LayoutTests/svg/animations/animate-element-reinserted-crash.html#newcode27 LayoutTests/svg/animations/animate-element-reinserted-crash.html:27: window.setTimeout(pass, 1000); ...
7 years ago (2013-12-20 11:50:06 UTC) #2
fs
On 2013/12/20 11:50:06, David Vest wrote: > https://codereview.chromium.org/107083007/diff/1/LayoutTests/svg/animations/animate-element-reinserted-crash.html > File LayoutTests/svg/animations/animate-element-reinserted-crash.html (right): > > https://codereview.chromium.org/107083007/diff/1/LayoutTests/svg/animations/animate-element-reinserted-crash.html#newcode27 ...
7 years ago (2013-12-20 12:02:05 UTC) #3
fs
7 years ago (2013-12-20 12:05:44 UTC) #4
pdr.
On 2013/12/20 12:05:44, fs wrote: LGTM I would prefer 0 if possible, as extra slack ...
7 years ago (2013-12-20 19:19:26 UTC) #5
fs
0ms it is then.
6 years, 11 months ago (2014-01-07 16:01:45 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/107083007/70001
6 years, 11 months ago (2014-01-07 16:15:45 UTC) #7
commit-bot: I haz the power
6 years, 11 months ago (2014-01-07 17:39:55 UTC) #8
Message was sent while issue was closed.
Change committed as 164599

Powered by Google App Engine
This is Rietveld 408576698