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

Issue 26247003: Web Animations CSS: Support animation of background-position and background-image (Closed)

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

Description

Web Animations CSS: Support animation of background-position and background-image Existing layout tests for background-image depend on background-size animation being implemented before they can be enabled in TestExpectations. The current implementation does not animate mis-matched background-position value counts correctly and is expected to fail the newly added test. The test passes under the Web Animations implementation. Relevant spec: http://dev.w3.org/csswg/css-backgrounds/#the-background-position http://dev.w3.org/csswg/css-backgrounds/#the-background-image BUG=257591 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159396

Patch Set 1 #

Total comments: 37

Patch Set 2 : Review changes #

Total comments: 18

Patch Set 3 : Review changes #

Total comments: 6

Patch Set 4 : Assertion rearrangement #

Patch Set 5 : Fixed test expectations #

Patch Set 6 : Refixed test expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -27 lines) Patch
A LayoutTests/animations/interpolation/background-position-interpolation.html View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A LayoutTests/animations/interpolation/background-position-interpolation-expected.txt View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/virtual/web-animations-css/animations/interpolation/background-position-interpolation-expected.txt View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A + Source/core/animation/AnimatableRepeatable.h View 1 2 3 1 chunk +25 lines, -21 lines 0 comments Download
A Source/core/animation/AnimatableRepeatable.cpp View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
M Source/core/animation/AnimatableValue.h View 4 chunks +8 lines, -6 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 chunks +33 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
alancutter (OOO until 2018)
7 years, 2 months ago (2013-10-08 10:23:42 UTC) #1
dstockwell
https://codereview.chromium.org/26247003/diff/1/LayoutTests/animations/interpolation/background-position-interpolation-expected.txt File LayoutTests/animations/interpolation/background-position-interpolation-expected.txt (right): https://codereview.chromium.org/26247003/diff/1/LayoutTests/animations/interpolation/background-position-interpolation-expected.txt#newcode2 LayoutTests/animations/interpolation/background-position-interpolation-expected.txt:2: FAIL: background-position from [0px 0px, 80px 0px] to [40px ...
7 years, 2 months ago (2013-10-08 22:52:04 UTC) #2
dstockwell
https://codereview.chromium.org/26247003/diff/1/Source/core/animation/AnimatableRepeatable.h File Source/core/animation/AnimatableRepeatable.h (right): https://codereview.chromium.org/26247003/diff/1/Source/core/animation/AnimatableRepeatable.h#newcode54 Source/core/animation/AnimatableRepeatable.h:54: ASSERT(!values.isEmpty()); why? https://codereview.chromium.org/26247003/diff/1/Source/core/css/resolver/AnimatedStyleBuilder.cpp File Source/core/css/resolver/AnimatedStyleBuilder.cpp (right): https://codereview.chromium.org/26247003/diff/1/Source/core/css/resolver/AnimatedStyleBuilder.cpp#newcode99 Source/core/css/resolver/AnimatedStyleBuilder.cpp:99: ASSERT(!values.isEmpty()); ...
7 years, 2 months ago (2013-10-08 22:57:30 UTC) #3
dstockwell
https://codereview.chromium.org/26247003/diff/1/Source/core/animation/css/CSSAnimatableValueFactory.cpp File Source/core/animation/css/CSSAnimatableValueFactory.cpp (right): https://codereview.chromium.org/26247003/diff/1/Source/core/animation/css/CSSAnimatableValueFactory.cpp#newcode133 Source/core/animation/css/CSSAnimatableValueFactory.cpp:133: inline static PassRefPtr<AnimatableValue> createFromFillLayers(const FillLayer* fillLayer, T getter, bool ...
7 years, 2 months ago (2013-10-08 23:02:45 UTC) #4
Steve Block
https://codereview.chromium.org/26247003/diff/1/LayoutTests/animations/interpolation/background-position-interpolation-expected.txt File LayoutTests/animations/interpolation/background-position-interpolation-expected.txt (right): https://codereview.chromium.org/26247003/diff/1/LayoutTests/animations/interpolation/background-position-interpolation-expected.txt#newcode8 LayoutTests/animations/interpolation/background-position-interpolation-expected.txt:8: FAIL: background-position from [0px 0px, 80px 0px] to [40px ...
7 years, 2 months ago (2013-10-08 23:21:48 UTC) #5
Steve Block
https://codereview.chromium.org/26247003/diff/1/Source/core/animation/AnimatableRepeatable.cpp File Source/core/animation/AnimatableRepeatable.cpp (right): https://codereview.chromium.org/26247003/diff/1/Source/core/animation/AnimatableRepeatable.cpp#newcode36 Source/core/animation/AnimatableRepeatable.cpp:36: static size_t gcd(size_t a, size_t b) I think we ...
7 years, 2 months ago (2013-10-08 23:27:22 UTC) #6
alancutter (OOO until 2018)
I've changed the implementation to use a switch on a templated CSS property ID instead ...
7 years, 2 months ago (2013-10-09 07:20:55 UTC) #7
dstockwell
https://codereview.chromium.org/26247003/diff/16001/LayoutTests/animations/interpolation/background-position-interpolation.html File LayoutTests/animations/interpolation/background-position-interpolation.html (right): https://codereview.chromium.org/26247003/diff/16001/LayoutTests/animations/interpolation/background-position-interpolation.html#newcode38 LayoutTests/animations/interpolation/background-position-interpolation.html:38: to: 'left 80px top 80px', test a matching case ...
7 years, 2 months ago (2013-10-09 23:15:06 UTC) #8
Steve Block
https://codereview.chromium.org/26247003/diff/1/LayoutTests/animations/interpolation/background-position-interpolation.html File LayoutTests/animations/interpolation/background-position-interpolation.html (right): https://codereview.chromium.org/26247003/diff/1/LayoutTests/animations/interpolation/background-position-interpolation.html#newcode22 LayoutTests/animations/interpolation/background-position-interpolation.html:22: to: '40px 40px, 80px 80px, 0px 80px' Sorry, that ...
7 years, 2 months ago (2013-10-09 23:19:04 UTC) #9
alancutter (OOO until 2018)
https://codereview.chromium.org/26247003/diff/1/Source/core/animation/AnimatableRepeatable.cpp File Source/core/animation/AnimatableRepeatable.cpp (right): https://codereview.chromium.org/26247003/diff/1/Source/core/animation/AnimatableRepeatable.cpp#newcode36 Source/core/animation/AnimatableRepeatable.cpp:36: static size_t gcd(size_t a, size_t b) On 2013/10/09 23:19:05, ...
7 years, 2 months ago (2013-10-10 00:58:38 UTC) #10
Steve Block
https://codereview.chromium.org/26247003/diff/32001/Source/core/animation/AnimatableRepeatable.cpp File Source/core/animation/AnimatableRepeatable.cpp (right): https://codereview.chromium.org/26247003/diff/32001/Source/core/animation/AnimatableRepeatable.cpp#newcode43 Source/core/animation/AnimatableRepeatable.cpp:43: if (!a && !b) This could be an OR ...
7 years, 2 months ago (2013-10-10 03:34:51 UTC) #11
alancutter (OOO until 2018)
https://codereview.chromium.org/26247003/diff/32001/Source/core/animation/AnimatableRepeatable.cpp File Source/core/animation/AnimatableRepeatable.cpp (right): https://codereview.chromium.org/26247003/diff/32001/Source/core/animation/AnimatableRepeatable.cpp#newcode43 Source/core/animation/AnimatableRepeatable.cpp:43: if (!a && !b) On 2013/10/10 03:34:52, Steve Block ...
7 years, 2 months ago (2013-10-10 05:32:40 UTC) #12
Steve Block
lgtm
7 years, 2 months ago (2013-10-10 06:05:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/26247003/42001
7 years, 2 months ago (2013-10-10 06:25:23 UTC) #14
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=7498
7 years, 2 months ago (2013-10-10 07:28:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/26247003/58001
7 years, 2 months ago (2013-10-10 08:56:21 UTC) #16
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=7523
7 years, 2 months ago (2013-10-10 10:04:39 UTC) #17
Steve Block
Looks like you need to update the expected result for the legacy impl too.
7 years, 2 months ago (2013-10-10 10:30:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/26247003/75001
7 years, 2 months ago (2013-10-10 14:21:16 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=10084
7 years, 2 months ago (2013-10-10 16:16:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/26247003/75001
7 years, 2 months ago (2013-10-10 22:13:07 UTC) #21
commit-bot: I haz the power
7 years, 2 months ago (2013-10-11 00:21:32 UTC) #22
Message was sent while issue was closed.
Change committed as 159396

Powered by Google App Engine
This is Rietveld 408576698