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

Unified Diff: Source/core/animation/AnimatableValue.h

Issue 25082007: Web Animations CSS: Split AnimatableNumber into AnimatableDouble and AnimatableLength (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review changes Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/animation/AnimatableValue.h
diff --git a/Source/core/animation/AnimatableValue.h b/Source/core/animation/AnimatableValue.h
index be4f8a8172eac63017c2f472e7c744176a20b252..c45d471041fd1fc4fa45a78661819a86d5abd453 100644
--- a/Source/core/animation/AnimatableValue.h
+++ b/Source/core/animation/AnimatableValue.h
@@ -48,10 +48,11 @@ public:
bool isClipPathOperation() const { return type() == TypeClipPathOperation; }
bool isColor() const { return type() == TypeColor; }
+ bool isDouble() const { return type() == TypeDouble; }
bool isImage() const { return type() == TypeImage; }
+ bool isLength() const { return type() == TypeLength; }
bool isLengthBox() const { return type() == TypeLengthBox; }
bool isLengthSize() const { return type() == TypeLengthSize; }
- bool isNumber() const { return type() == TypeNumber; }
bool isNeutral() const { return type() == TypeNeutral; }
bool isShapeValue() const { return type() == TypeShapeValue; }
bool isTransform() const { return type() == TypeTransform; }
@@ -62,11 +63,12 @@ protected:
enum AnimatableType {
TypeClipPathOperation,
TypeColor,
+ TypeDouble,
TypeImage,
+ TypeLength,
TypeLengthBox,
TypeLengthSize,
TypeNeutral,
- TypeNumber,
TypeShapeValue,
TypeTransform,
TypeUnknown,
« no previous file with comments | « Source/core/animation/AnimatableNumberTest.cpp ('k') | Source/core/animation/KeyframeAnimationEffectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698