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/AnimatableStrokeDasharrayList.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/AnimatableStrokeDasharrayList.h
diff --git a/Source/core/animation/AnimatableStrokeDasharrayList.h b/Source/core/animation/AnimatableStrokeDasharrayList.h
index af5c9f19cb1bd2e1fa9eb632d3df2b562050ce09..d19b2e017ac4ae03584e7dc88d03570daba47e89 100644
--- a/Source/core/animation/AnimatableStrokeDasharrayList.h
+++ b/Source/core/animation/AnimatableStrokeDasharrayList.h
@@ -61,11 +61,7 @@ private:
virtual AnimatableType type() const { return TypeStrokeDasharrayList; }
};
-inline const AnimatableStrokeDasharrayList* toAnimatableStrokeDasharrayList(const AnimatableValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value && value->isStrokeDasharrayList());
- return static_cast<const AnimatableStrokeDasharrayList*>(value);
-}
+DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableStrokeDasharrayList, isStrokeDasharrayList());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698