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

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

Issue 22799020: Web Animations CSS: Support Animation of StyleImage and LengthBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 4 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 94a65d1caef94df4bc2935393142b5abff923e5e..ddc5f142bff3fc160026d01ce0ea1f7acc308992 100644
--- a/Source/core/animation/AnimatableValue.h
+++ b/Source/core/animation/AnimatableValue.h
@@ -48,6 +48,8 @@ public:
// For noncommutative values read add(A, B) to mean the value A with B composed onto it.
static PassRefPtr<AnimatableValue> add(const AnimatableValue*, const AnimatableValue*);
+ bool isImage() const { return m_type == TypeImage; }
+ bool isLengthBox() const { return m_type == TypeLengthBox; }
bool isNumber() const { return m_type == TypeNumber; }
bool isNeutral() const { return m_type == TypeNeutral; }
bool isTransform() const { return m_type == TypeTransform; }
@@ -55,6 +57,8 @@ public:
protected:
enum AnimatableType {
+ TypeImage,
+ TypeLengthBox,
TypeNeutral,
TypeNumber,
TypeTransform,
« no previous file with comments | « Source/core/animation/AnimatableLengthBox.cpp ('k') | Source/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698