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

Issue 878863002: Animation: Add CSSPropertyClip and CSSPropertyBorderImageSlice to StringKeyframe (Closed)

Created:
5 years, 11 months ago by jadeg
Modified:
5 years, 7 months ago
CC:
dstockwell, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, Eric Willigers, Mike Lawther (Google), rjwright, rwlbuis, 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 CSSPropertyClip and CSSPropertyBorderImageSlice to StringKeyframe Implemented CSSBoarderImageSlice and CSSPropertyClip in StringKeyframe. CSSPropertyBorderImageSlice was incorrectly falling to LengthBox interpolation rather than BorderImageSlice as it is supposed to. CSSPropertyClip had to handle case of a rect side being an automatic value. BUG=452383 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190118

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove isAutoValue exception #

Patch Set 3 : For Shane to Review Only **Not for commit** #

Patch Set 4 : Handling auto values #

Total comments: 15

Patch Set 5 : Implement Eric's changes #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -69 lines) Patch
M Source/core/animation/LengthBoxStyleInterpolation.h View 1 2 3 4 1 chunk +12 lines, -18 lines 2 comments Download
M Source/core/animation/LengthBoxStyleInterpolation.cpp View 1 2 3 4 2 chunks +87 lines, -41 lines 8 comments Download
M Source/core/animation/LengthBoxStyleInterpolationTest.cpp View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/animation/StringKeyframe.cpp View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download
M Source/core/css/CSSBorderImageSliceValue.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (6 generated)
jadeg
5 years, 11 months ago (2015-01-27 22:58:28 UTC) #2
Eric Willigers
lgtm In the description, change CSSBoarderImageSlice to CSSBorderImageSlice. https://codereview.chromium.org/878863002/diff/1/Source/core/animation/LengthBoxStyleInterpolation.cpp File Source/core/animation/LengthBoxStyleInterpolation.cpp (right): https://codereview.chromium.org/878863002/diff/1/Source/core/animation/LengthBoxStyleInterpolation.cpp#newcode76 Source/core/animation/LengthBoxStyleInterpolation.cpp:76: void ...
5 years, 11 months ago (2015-01-27 23:21:14 UTC) #3
evemj (not active)
lgtm
5 years, 11 months ago (2015-01-27 23:35:37 UTC) #4
dstockwell
https://codereview.chromium.org/878863002/diff/1/Source/core/animation/StringKeyframe.cpp File Source/core/animation/StringKeyframe.cpp (right): https://codereview.chromium.org/878863002/diff/1/Source/core/animation/StringKeyframe.cpp#newcode230 Source/core/animation/StringKeyframe.cpp:230: fallBackToLegacy = true; Why aren't we handling auto here?
5 years, 10 months ago (2015-01-30 04:34:08 UTC) #6
jadeg
On 2015/01/30 04:34:08, dstockwell wrote: > https://codereview.chromium.org/878863002/diff/1/Source/core/animation/StringKeyframe.cpp > File Source/core/animation/StringKeyframe.cpp (right): > > https://codereview.chromium.org/878863002/diff/1/Source/core/animation/StringKeyframe.cpp#newcode230 > ...
5 years, 10 months ago (2015-02-04 23:16:26 UTC) #7
dstockwell
lgtm
5 years, 10 months ago (2015-02-04 23:34:54 UTC) #8
jadeg
On 2015/02/04 23:34:54, dstockwell wrote: > lgtm Sorry my earlier patch was wrong, the auto ...
5 years, 10 months ago (2015-02-11 03:15:33 UTC) #10
Eric Willigers
https://codereview.chromium.org/878863002/diff/60001/Source/core/animation/LengthBoxStyleInterpolation.cpp File Source/core/animation/LengthBoxStyleInterpolation.cpp (right): https://codereview.chromium.org/878863002/diff/60001/Source/core/animation/LengthBoxStyleInterpolation.cpp#newcode24 Source/core/animation/LengthBoxStyleInterpolation.cpp:24: } else if (LengthStyleInterpolation::canCreateFrom(*side[i])) { The control flow can ...
5 years, 10 months ago (2015-02-11 03:56:32 UTC) #12
jadeg
https://codereview.chromium.org/878863002/diff/60001/Source/core/animation/LengthBoxStyleInterpolation.cpp File Source/core/animation/LengthBoxStyleInterpolation.cpp (right): https://codereview.chromium.org/878863002/diff/60001/Source/core/animation/LengthBoxStyleInterpolation.cpp#newcode24 Source/core/animation/LengthBoxStyleInterpolation.cpp:24: } else if (LengthStyleInterpolation::canCreateFrom(*side[i])) { On 2015/02/11 03:56:32, Eric ...
5 years, 10 months ago (2015-02-12 05:06:00 UTC) #13
dstockwell
I think this looks OK. Some minor naming/const things to fix. We may want to ...
5 years, 10 months ago (2015-02-13 02:30:36 UTC) #14
evemj (not active)
https://codereview.chromium.org/878863002/diff/80001/Source/core/animation/LengthBoxStyleInterpolation.cpp File Source/core/animation/LengthBoxStyleInterpolation.cpp (right): https://codereview.chromium.org/878863002/diff/80001/Source/core/animation/LengthBoxStyleInterpolation.cpp#newcode14 Source/core/animation/LengthBoxStyleInterpolation.cpp:14: bool onlyLengthToAuto(Rect* startRect, Rect* endRect) On 2015/02/13 02:30:35, dstockwell ...
5 years, 10 months ago (2015-02-13 04:04:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/878863002/80001
5 years, 10 months ago (2015-02-13 05:08:51 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190118
5 years, 10 months ago (2015-02-13 07:13:24 UTC) #18
sof
5 years, 10 months ago (2015-02-13 08:40:38 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/878863002/diff/80001/Source/core/animation/Le...
File Source/core/animation/LengthBoxStyleInterpolation.cpp (right):

https://codereview.chromium.org/878863002/diff/80001/Source/core/animation/Le...
Source/core/animation/LengthBoxStyleInterpolation.cpp:71:
PassRefPtr<CSSPrimitiveValue> findValue(InterpolableList* lengthBox, size_t i,
CSSPrimitiveValue* start[], CSSPrimitiveValue* end[])
On 2015/02/13 04:04:00, evemj wrote:
> On 2015/02/13 02:30:35, dstockwell wrote:
> > findValue is a bit vague, is indexedValueToLength better?
> > 
> > lengthBox/start/end should be references (and probably const)
> 
> Done.

Intentionally kept as findValue()? (This helper didn't have an Oilpan-compatible
return type; addressed by https://codereview.chromium.org/919363002/ )

Powered by Google App Engine
This is Rietveld 408576698