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

Unified Diff: Source/core/animation/AnimatableValue.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/AnimatableValue.h
diff --git a/Source/core/animation/AnimatableValue.h b/Source/core/animation/AnimatableValue.h
index 76ce4743517915e1bd4c895c98686346617510a1..023b1ff4a66cdb6b7ffeb8003db8ee2af7ee928f 100644
--- a/Source/core/animation/AnimatableValue.h
+++ b/Source/core/animation/AnimatableValue.h
@@ -123,6 +123,9 @@ private:
virtual bool equalTo(const AnimatableValue*) const = 0;
};
+#define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \
+ DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.predicate)
+
} // namespace WebCore
#endif // AnimatableValue_h

Powered by Google App Engine
This is Rietveld 408576698