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

Issue 26292004: Web Animations CSS: Support animation of stroke-dasharray property (Closed)

Created:
7 years, 2 months ago by Steve Block
Modified:
7 years, 2 months ago
Reviewers:
dstockwell
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), dglazkov+blink, Timothy Loh, apavlov+blink_chromium.org, darktears, dino_apple.com, Eric Willigers
Visibility:
Public.

Description

Web Animations CSS: Support animation of stroke-dasharray property The Web Animations implementation matches Firefox in all details except for when animating to or from a value of 'none'. In this case, Firefox does not animate, and the computed style is always 'none'. The Web Animations implementation considers 'none' equivalent to a value of '0 0', as both result in a solid line being drawn, and animates using an effective value of '0 0'. The legacy implementation has a number of bugs ... - The behavior when animating to or from a value of 'none' is odd. - Values should be clipped to be non-negative. See http://crbug.com/305070. - When lists consist of differing numbers of elements, we should repeat the lists to form a list of length equal to the lowest common multiple of the lengths of the individual lists. Currently we use a list of length equal to the multiple of the lengths of the individual lists. BUG=257591 R=dstockwell Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159552

Patch Set 1 #

Patch Set 2 : git cl try #

Patch Set 3 : Add crashing expectation for virtual/threaded suite #

Patch Set 4 : Remove superfluous header #

Patch Set 5 : Reased: implement AnimatableSVGLengthVector::equalTo() #

Patch Set 6 : Rename test #

Patch Set 7 : Treat 'none' as '0 0' #

Patch Set 8 : Rebased #

Patch Set 9 : Fix use of max() #

Patch Set 10 : Rebased #

Patch Set 11 : Rebased #

Total comments: 6

Patch Set 12 : Rebased #

Patch Set 13 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+488 lines, -39 lines) Patch
LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +168 lines, -0 lines 0 comments Download
LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +84 lines, -0 lines 0 comments Download
LayoutTests/virtual/web-animations-css/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +84 lines, -0 lines 0 comments Download
Source/core/animation/AnimatableRepeatable.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -3 lines 0 comments Download
Source/core/animation/AnimatableRepeatable.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -10 lines 0 comments Download
Source/core/animation/AnimatableStrokeDasharrayList.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -22 lines 0 comments Download
Source/core/animation/AnimatableStrokeDasharrayList.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +91 lines, -0 lines 0 comments Download
Source/core/animation/AnimatableValue.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Steve Block
7 years, 2 months ago (2013-10-08 06:13:04 UTC) #1
dstockwell
Do we want to rebase this on top of https://codereview.chromium.org/26247003/ ?
7 years, 2 months ago (2013-10-08 23:05:00 UTC) #2
Steve Block
> Do we want to rebase this on top of https://codereview.chromium.org/26247003/ ? Yes, we can ...
7 years, 2 months ago (2013-10-08 23:23:06 UTC) #3
Steve Block
The only complication is that the logic here needs to special-case lists with zero entries.
7 years, 2 months ago (2013-10-08 23:27:11 UTC) #4
Steve Block
Rebased onto https://codereview.chromium.org/26247003 Ready for another look.
7 years, 2 months ago (2013-10-11 01:26:43 UTC) #5
dstockwell
https://codereview.chromium.org/26292004/diff/40001/LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html File LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html (right): https://codereview.chromium.org/26292004/diff/40001/LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html#newcode92 LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html:92: {at: -0.2, is: ' 0 0'}, We should probably ...
7 years, 2 months ago (2013-10-13 23:35:51 UTC) #6
dstockwell
lgtm https://codereview.chromium.org/26292004/diff/40001/Source/core/animation/AnimatableStrokeDasharrayList.cpp File Source/core/animation/AnimatableStrokeDasharrayList.cpp (right): https://codereview.chromium.org/26292004/diff/40001/Source/core/animation/AnimatableStrokeDasharrayList.cpp#newcode43 Source/core/animation/AnimatableStrokeDasharrayList.cpp:43: values.append(AnimatableSVGLength::create(lengths[i])); can't this be m_values.append ?
7 years, 2 months ago (2013-10-13 23:38:22 UTC) #7
Steve Block
https://codereview.chromium.org/26292004/diff/40001/LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html File LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html (right): https://codereview.chromium.org/26292004/diff/40001/LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html#newcode92 LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html:92: {at: -0.2, is: ' 0 0'}, On 2013/10/13 23:35:52, ...
7 years, 2 months ago (2013-10-14 01:01:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/26292004/51001
7 years, 2 months ago (2013-10-14 01:01:19 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=7984
7 years, 2 months ago (2013-10-14 01:41:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/26292004/51001
7 years, 2 months ago (2013-10-14 02:08:21 UTC) #11
commit-bot: I haz the power
7 years, 2 months ago (2013-10-14 02:36:44 UTC) #12
Message was sent while issue was closed.
Change committed as 159552

Powered by Google App Engine
This is Rietveld 408576698