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

Issue 29543005: Introduce DEFINE_ANIMATABLE_VALUE_TYPE_CASTS to replace manual toFoo() for animatable value (Closed)

Created:
7 years, 2 months ago by gyuyoung-inactive
Modified:
7 years, 2 months ago
Reviewers:
tkent, dstockwell
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), Timothy Loh, darktears, Steve Block, dino_apple.com, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce DEFINE_ANIMATABLE_VALUE_TYPE_CASTS to replace manual toFoo() for animatable value. As a step to let toFoo() use DEFINE_TYPE_CASTS, this cl replace toFoo() for animatable value. with DEFINE_ANIMATABLE_VALUE_TYPE_CASTS. To use DEFINE_TYPE_CASTS generates plenty more helper functions which can detect bad type cast. BUG=309516 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160151

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -81 lines) Patch
M Source/core/animation/AnimatableClipPathOperation.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableColor.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableDouble.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableImage.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableLength.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableLengthBox.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableLengthBoxAndBool.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableLengthSize.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableRepeatable.h View 1 1 chunk +1 line, -6 lines 2 comments Download
M Source/core/animation/AnimatableSVGLength.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableSVGPaint.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableShapeValue.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableStrokeDasharrayList.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableTransform.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableUnknown.h View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/animation/AnimatableValue.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/animation/AnimatableVisibility.h View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
gyuyoung-inactive
Add tkent.
7 years, 2 months ago (2013-10-21 05:10:48 UTC) #1
tkent
lgtm
7 years, 2 months ago (2013-10-21 05:25:03 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gyuyoung.kim@samsung.com/29543005/1
7 years, 2 months ago (2013-10-21 05:25:12 UTC) #3
dstockwell
Is there a bug which explains why these changes are being made? The implementation of ...
7 years, 2 months ago (2013-10-21 05:27:45 UTC) #4
tkent
On 2013/10/21 05:27:45, dstockwell wrote: > Is there a bug which explains why these changes ...
7 years, 2 months ago (2013-10-21 05:30:37 UTC) #5
gyuyoung-inactive
On 2013/10/21 05:30:37, tkent wrote: > On 2013/10/21 05:27:45, dstockwell wrote: > > Is there ...
7 years, 2 months ago (2013-10-21 05:33:57 UTC) #6
tkent
On 2013/10/21 05:33:57, gyuyoung wrote: > On 2013/10/21 05:30:37, tkent wrote: > > On 2013/10/21 ...
7 years, 2 months ago (2013-10-21 05:37:21 UTC) #7
dstockwell
> toAnimatableFoo was wrong. WebKit/Blink convention is that toFoo should accept > null because it's ...
7 years, 2 months ago (2013-10-21 05:42:17 UTC) #8
gyuyoung-inactive
On 2013/10/21 05:42:17, dstockwell wrote: > > toAnimatableFoo was wrong. WebKit/Blink convention is that toFoo ...
7 years, 2 months ago (2013-10-21 05:46:38 UTC) #9
gyuyoung-inactive
https://chromiumcodereview.appspot.com/29543005/diff/130001/Source/core/animation/AnimatableRepeatable.h File Source/core/animation/AnimatableRepeatable.h (right): https://chromiumcodereview.appspot.com/29543005/diff/130001/Source/core/animation/AnimatableRepeatable.h#newcode75 Source/core/animation/AnimatableRepeatable.h:75: DEFINE_TYPE_CASTS(AnimatableRepeatable, AnimatableValue, value, (value->isRepeatable() || value->isStrokeDasharrayList()), (value.isRepeatable() || value.isStrokeDasharrayList())); ...
7 years, 2 months ago (2013-10-21 09:33:55 UTC) #10
tkent
lgtm https://chromiumcodereview.appspot.com/29543005/diff/130001/Source/core/animation/AnimatableRepeatable.h File Source/core/animation/AnimatableRepeatable.h (right): https://chromiumcodereview.appspot.com/29543005/diff/130001/Source/core/animation/AnimatableRepeatable.h#newcode75 Source/core/animation/AnimatableRepeatable.h:75: DEFINE_TYPE_CASTS(AnimatableRepeatable, AnimatableValue, value, (value->isRepeatable() || value->isStrokeDasharrayList()), (value.isRepeatable() || ...
7 years, 2 months ago (2013-10-21 21:48:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gyuyoung.kim@samsung.com/29543005/130001
7 years, 2 months ago (2013-10-21 21:49:08 UTC) #12
commit-bot: I haz the power
7 years, 2 months ago (2013-10-22 08:37:46 UTC) #13
Message was sent while issue was closed.
Change committed as 160151

Powered by Google App Engine
This is Rietveld 408576698