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

Issue 330813002: Fix computation of animated transform w/ different from/to transform types (Closed)

Created:
6 years, 6 months ago by fs
Modified:
6 years, 6 months ago
Reviewers:
pdr.
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, Mike Lawther (Google), blink-reviews-animation_chromium.org, rwlbuis, fs, kouhei+svg_chromium.org, dstockwell, Timothy Loh, krit, f(malita), gyuyoung.kim_webkit.org, darktears, Stephen Chennney, Steve Block, pdr., Eric Willigers
Project:
blink
Visibility:
Public.

Description

Fix computation of animated transform w/ different from/to transform types Calculating the animated value between two transforms of differing types would give random results (and ASSERT in debug.) Fix by requiring the effective 'from' value to have the same type as the 'to' value. If the types are not the same, then use a "zero transform" as the 'from' value. Also adjust the behavior of animateTransform additive to-animations in this case by clearing the list in these cases too (matching Presto and Gecko in this particular case.) BUG=231409 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176193

Patch Set 1 #

Patch Set 2 : Fixup comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
A LayoutTests/svg/animations/animateTransform-to-mismatched-types.html View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/svg/animations/animateTransform-to-mismatched-types-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/svg/SVGTransformList.cpp View 1 1 chunk +7 lines, -2 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
fs
6 years, 6 months ago (2014-06-13 16:08:46 UTC) #1
pdr.
LGTM It's unfortunate we have so many of these slightly different variations of calculateAnimatedValue. I ...
6 years, 6 months ago (2014-06-13 17:29:41 UTC) #2
fs
https://codereview.chromium.org/330813002/diff/10001/Source/core/svg/SVGTransformList.cpp File Source/core/svg/SVGTransformList.cpp (right): https://codereview.chromium.org/330813002/diff/10001/Source/core/svg/SVGTransformList.cpp#newcode335 Source/core/svg/SVGTransformList.cpp:335: RefPtr<SVGTransform> effectiveToAtEnd = !toAtEndOfDurationList->isEmpty() ? toAtEndOfDurationList->at(0) : SVGTransform::create(toTransform->transformType(), SVGTransform::ConstructZeroTransform); ...
6 years, 6 months ago (2014-06-16 08:13:49 UTC) #3
fs
The CQ bit was checked by fs@opera.com
6 years, 6 months ago (2014-06-16 08:15:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/330813002/10001
6 years, 6 months ago (2014-06-16 08:16:44 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 09:06:26 UTC) #6
Message was sent while issue was closed.
Change committed as 176193

Powered by Google App Engine
This is Rietveld 408576698