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

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

Issue 29543005: Introduce DEFINE_ANIMATABLE_VALUE_TYPE_CASTS to replace manual toFoo() for animatable value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/AnimatableClipPathOperation.h
diff --git a/Source/core/animation/AnimatableClipPathOperation.h b/Source/core/animation/AnimatableClipPathOperation.h
index 065973158d05eebf0c8104d9611419424ef41a29..fe5b67a4a9fed28cb645ff6494a32ad176a64a03 100644
--- a/Source/core/animation/AnimatableClipPathOperation.h
+++ b/Source/core/animation/AnimatableClipPathOperation.h
@@ -59,11 +59,7 @@ private:
RefPtr<ClipPathOperation> m_operation;
};
-inline const AnimatableClipPathOperation* toAnimatableClipPathOperation(const AnimatableValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value && value->isClipPathOperation());
- return static_cast<const AnimatableClipPathOperation*>(value);
-}
+DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableClipPathOperation, isClipPathOperation());
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/animation/AnimatableColor.h » ('j') | Source/core/animation/AnimatableRepeatable.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698