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

Issue 851633002: Animation: Add template for ListStyleInterpolation (Closed)

Created:
5 years, 11 months ago by evemj (not active)
Modified:
5 years, 10 months ago
CC:
dstockwell, darktears, blink-reviews, blink-reviews-animation_chromium.org, Eric Willigers, Mike Lawther (Google), rjwright, shans, Steve Block, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Animation: Add template for ListStyleInterpolation Remove LengthPoint3DStyle interpolation as CSSPropertyPerspectiveOrigin and CSSPropertyTransformOrigin can be handled using ListStyleInterpolation<LengthStyleInterpolation>. Currently only used for lists of lengths and shadows, but could potentially be used for any CSSValueList interpolation (such as transform or basic shape). BUG=450448 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189490

Patch Set 1 : Add template for ListStyleInterpolation #

Total comments: 47

Patch Set 2 : Create new methods in ShadowStyleInterpolation #

Total comments: 9

Patch Set 3 : Add separate variables for value lists #

Total comments: 6

Patch Set 4 : #

Total comments: 13

Patch Set 5 : Correct rounding in Interpolation LayoutTests and remove WillBeHeapVector #

Total comments: 31

Patch Set 6 : Remove InterpolableBool from ShadowStyleInterpolation #

Total comments: 6

Patch Set 7 : Add default parameter to listToInterpolableValue and change inheritance of Interpolation.h #

Patch Set 8 : Add trace to ListStyleInterpolationImpl #

Patch Set 9 : Remove trace from liststyleinterpolation #

Patch Set 10 : Add else to shadowToInterpolableValue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -315 lines) Patch
M LayoutTests/animations/interpolation/box-shadow-interpolation.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt View 1 2 3 4 2 chunks +16 lines, -4 lines 0 comments Download
M LayoutTests/animations/interpolation/resources/interpolation-test.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/LengthBoxStyleInterpolation.cpp View 1 4 chunks +10 lines, -10 lines 0 comments Download
M Source/core/animation/LengthPairStyleInterpolation.cpp View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
D Source/core/animation/LengthPoint3DStyleInterpolation.h View 1 chunk +0 lines, -38 lines 0 comments Download
D Source/core/animation/LengthPoint3DStyleInterpolation.cpp View 1 chunk +0 lines, -64 lines 0 comments Download
D Source/core/animation/LengthPoint3DStyleInterpolationTest.cpp View 1 chunk +0 lines, -116 lines 0 comments Download
M Source/core/animation/LengthStyleInterpolation.h View 1 2 chunks +7 lines, -10 lines 0 comments Download
M Source/core/animation/LengthStyleInterpolation.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/animation/LengthStyleInterpolationTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
A Source/core/animation/ListStyleInterpolation.h View 1 2 3 4 5 6 7 8 9 1 chunk +145 lines, -0 lines 0 comments Download
A Source/core/animation/ListStyleInterpolationTest.cpp View 1 2 3 4 5 6 8 1 chunk +100 lines, -0 lines 0 comments Download
M Source/core/animation/ShadowStyleInterpolation.h View 1 2 3 4 5 1 chunk +21 lines, -14 lines 0 comments Download
M Source/core/animation/ShadowStyleInterpolation.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -35 lines 0 comments Download
M Source/core/animation/ShadowStyleInterpolationTest.cpp View 1 2 3 4 1 chunk +11 lines, -1 line 0 comments Download
M Source/core/animation/StringKeyframe.cpp View 1 2 3 4 5 3 chunks +26 lines, -9 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 50 (23 generated)
evemj (not active)
5 years, 11 months ago (2015-01-21 02:07:34 UTC) #7
jadeg
https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/ListStyleInterpolation.h#newcode13 Source/core/animation/ListStyleInterpolation.h:13: Do you need this platform/Length.h? https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/ListStyleInterpolation.h#newcode24 Source/core/animation/ListStyleInterpolation.h:24: static PassRefPtrWillBeRawPtr<ListStyleInterpolationImpl<T, ...
5 years, 11 months ago (2015-01-21 05:36:35 UTC) #10
jadeg
lgtm
5 years, 11 months ago (2015-01-21 05:36:45 UTC) #11
evemj (not active)
5 years, 11 months ago (2015-01-21 05:54:33 UTC) #13
samli
https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/LengthStyleInterpolation.h File Source/core/animation/LengthStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/LengthStyleInterpolation.h#newcode42 Source/core/animation/LengthStyleInterpolation.h:42: Don't think there is any value to having lengthToIntepolableValue() ...
5 years, 11 months ago (2015-01-23 03:23:36 UTC) #14
Timothy Loh
https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/ListStyleInterpolation.h#newcode24 Source/core/animation/ListStyleInterpolation.h:24: static PassRefPtrWillBeRawPtr<ListStyleInterpolationImpl<T, NI>> create(const CSSValue& start, const CSSValue& end, ...
5 years, 10 months ago (2015-01-27 03:36:54 UTC) #15
evemj (not active)
https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/LengthStyleInterpolation.h File Source/core/animation/LengthStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/LengthStyleInterpolation.h#newcode42 Source/core/animation/LengthStyleInterpolation.h:42: On 2015/01/23 03:23:36, samli wrote: > Don't think there ...
5 years, 10 months ago (2015-01-28 00:41:14 UTC) #17
evemj (not active)
https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/851633002/diff/140001/Source/core/animation/StringKeyframe.cpp#newcode218 Source/core/animation/StringKeyframe.cpp:218: // FIXME: Handle CSSValueLists. On 2015/01/23 03:23:36, samli wrote: ...
5 years, 10 months ago (2015-01-28 01:29:14 UTC) #19
Eric Willigers
https://codereview.chromium.org/851633002/diff/200001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt File LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt (right): https://codereview.chromium.org/851633002/diff/200001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt#newcode25 LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt:25: FAIL: boxShadow from [15px 10px 5px 6px black] to ...
5 years, 10 months ago (2015-01-28 02:21:23 UTC) #21
evemj (not active)
https://codereview.chromium.org/851633002/diff/200001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/200001/Source/core/animation/ListStyleInterpolation.h#newcode23 Source/core/animation/ListStyleInterpolation.h:23: for (size_t i = 0; i < toCSSValueList(start).length(); i++) ...
5 years, 10 months ago (2015-01-28 23:01:53 UTC) #23
shans
https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt File LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt (right): https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt#newcode25 LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt:25: FAIL: boxShadow from [15px 10px 5px 6px black] to ...
5 years, 10 months ago (2015-01-29 03:13:11 UTC) #24
dstockwell
https://codereview.chromium.org/851633002/diff/340001/Source/core/animation/LengthPairStyleInterpolation.cpp File Source/core/animation/LengthPairStyleInterpolation.cpp (right): https://codereview.chromium.org/851633002/diff/340001/Source/core/animation/LengthPairStyleInterpolation.cpp#newcode33 Source/core/animation/LengthPairStyleInterpolation.cpp:33: RefPtrWillBeRawPtr<CSSPrimitiveValue> first = (LengthStyleInterpolation::fromInterpolableValue(*lengthPair->get(0), range)); remove outer parens https://codereview.chromium.org/851633002/diff/340001/Source/core/animation/ListStyleInterpolation.h ...
5 years, 10 months ago (2015-01-30 04:24:01 UTC) #29
samli
https://codereview.chromium.org/851633002/diff/340001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/340001/Source/core/animation/ListStyleInterpolation.h#newcode59 Source/core/animation/ListStyleInterpolation.h:59: typename T::NonInterpolableType elementData = false; On 2015/01/30 04:24:01, dstockwell ...
5 years, 10 months ago (2015-01-30 07:20:30 UTC) #30
evemj (not active)
https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt File LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt (right): https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt#newcode25 LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt:25: FAIL: boxShadow from [15px 10px 5px 6px black] to ...
5 years, 10 months ago (2015-02-02 03:56:02 UTC) #32
dstockwell
https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt File LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt (right): https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt#newcode25 LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt:25: FAIL: boxShadow from [15px 10px 5px 6px black] to ...
5 years, 10 months ago (2015-02-02 06:10:12 UTC) #33
dstockwell
https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt File LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt (right): https://codereview.chromium.org/851633002/diff/240001/LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt#newcode25 LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt:25: FAIL: boxShadow from [15px 10px 5px 6px black] to ...
5 years, 10 months ago (2015-02-02 06:12:30 UTC) #34
shans
https://codereview.chromium.org/851633002/diff/360001/Source/core/animation/ShadowStyleInterpolation.cpp File Source/core/animation/ShadowStyleInterpolation.cpp (right): https://codereview.chromium.org/851633002/diff/360001/Source/core/animation/ShadowStyleInterpolation.cpp#newcode26 Source/core/animation/ShadowStyleInterpolation.cpp:26: return InterpolableBool::create(false); On 2015/02/02 06:10:12, dstockwell wrote: > Using ...
5 years, 10 months ago (2015-02-02 23:49:11 UTC) #35
evemj (not active)
https://codereview.chromium.org/851633002/diff/340001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/340001/Source/core/animation/ListStyleInterpolation.h#newcode131 Source/core/animation/ListStyleInterpolation.h:131: if (start.isValueList() && end.isValueList() && toCSSValueList(start).length() == toCSSValueList(end).length()) On ...
5 years, 10 months ago (2015-02-03 00:25:56 UTC) #37
dstockwell
https://codereview.chromium.org/851633002/diff/360001/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/851633002/diff/360001/Source/core/animation/StringKeyframe.cpp#newcode236 Source/core/animation/StringKeyframe.cpp:236: return DefaultStyleInterpolation::create(fromCSSValue, toCSSValue, property); On 2015/02/02 at 23:49:11, shans ...
5 years, 10 months ago (2015-02-03 02:22:18 UTC) #39
evemj (not active)
https://codereview.chromium.org/851633002/diff/400001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/400001/Source/core/animation/ListStyleInterpolation.h#newcode30 Source/core/animation/ListStyleInterpolation.h:30: OwnPtrWillBeRawPtr<Vector<typename InterpolationType::NonInterpolableType>> endNonInterpolableData = adoptPtrWillBeNoop(new Vector<typename InterpolationType::NonInterpolableType>()); On 2015/02/03 ...
5 years, 10 months ago (2015-02-03 03:45:50 UTC) #40
dstockwell
Just one last issue to resolve. https://codereview.chromium.org/851633002/diff/400001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/400001/Source/core/animation/ListStyleInterpolation.h#newcode30 Source/core/animation/ListStyleInterpolation.h:30: OwnPtrWillBeRawPtr<Vector<typename InterpolationType::NonInterpolableType>> endNonInterpolableData ...
5 years, 10 months ago (2015-02-03 05:20:40 UTC) #41
evemj (not active)
https://codereview.chromium.org/851633002/diff/400001/Source/core/animation/ListStyleInterpolation.h File Source/core/animation/ListStyleInterpolation.h (right): https://codereview.chromium.org/851633002/diff/400001/Source/core/animation/ListStyleInterpolation.h#newcode30 Source/core/animation/ListStyleInterpolation.h:30: OwnPtrWillBeRawPtr<Vector<typename InterpolationType::NonInterpolableType>> endNonInterpolableData = adoptPtrWillBeNoop(new Vector<typename InterpolationType::NonInterpolableType>()); On 2015/02/03 ...
5 years, 10 months ago (2015-02-03 05:58:46 UTC) #42
dstockwell
lgtm
5 years, 10 months ago (2015-02-03 05:59:29 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851633002/500001
5 years, 10 months ago (2015-02-04 02:03:45 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/41185)
5 years, 10 months ago (2015-02-04 04:36:12 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851633002/500001
5 years, 10 months ago (2015-02-04 10:59:56 UTC) #49
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 12:00:34 UTC) #50
Message was sent while issue was closed.
Committed patchset #10 (id:500001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189490

Powered by Google App Engine
This is Rietveld 408576698