Index: Source/core/animation/AnimatableValue.h |
diff --git a/Source/core/animation/AnimatableValue.h b/Source/core/animation/AnimatableValue.h |
index 3771fb4354dba85e61731320be796f5fff54a9d1..1a954fbfb9a6add42d55162a31707c43cd4852ba 100644 |
--- a/Source/core/animation/AnimatableValue.h |
+++ b/Source/core/animation/AnimatableValue.h |
@@ -62,6 +62,7 @@ public: |
virtual bool dependsOnUnderlyingValue() const OVERRIDE FINAL { return false; } |
virtual PassRefPtr<AnimatableValue> compositeOnto(const AnimatableValue*) const OVERRIDE FINAL { return takeConstRef(this); } |
+ virtual bool isAnimatableValue() const { return true; } |
bool isClipPathOperation() const { return type() == TypeClipPathOperation; } |
bool isColor() const { return type() == TypeColor; } |
@@ -138,6 +139,8 @@ private: |
#define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ |
DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.predicate) |
+DEFINE_TYPE_CASTS(AnimatableValue, AnimationEffect::CompositableValue, value, value->isAnimatableValue(), value.isAnimatableValue()); |
+ |
} // namespace WebCore |
#endif // AnimatableValue_h |