diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/animation/AnimatableImage.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/animation/AnimatableImage.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/chromium/third_party/WebKit/Source/core/animation/AnimatableImage.h b/chromium/third_party/WebKit/Source/core/animation/AnimatableImage.h index 81e24632f3c..40152f95c5e 100644 --- a/chromium/third_party/WebKit/Source/core/animation/AnimatableImage.h +++ b/chromium/third_party/WebKit/Source/core/animation/AnimatableImage.h @@ -53,20 +53,17 @@ protected: private: AnimatableImage(StyleImage* image) - : AnimatableValue(TypeImage) - , m_image(image) + : m_image(image) { ASSERT(m_image); } + virtual AnimatableType type() const OVERRIDE { return TypeImage; } + virtual bool equalTo(const AnimatableValue*) const OVERRIDE; const RefPtr<StyleImage> m_image; }; -inline const AnimatableImage* toAnimatableImage(const AnimatableValue* value) -{ - ASSERT_WITH_SECURITY_IMPLICATION(value && value->isImage()); - return static_cast<const AnimatableImage*>(value); -} +DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableImage, isImage()); } // namespace WebCore |