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

Unified Diff: Source/core/animation/AnimatableVisibility.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/AnimatableVisibility.h
diff --git a/Source/core/animation/AnimatableVisibility.h b/Source/core/animation/AnimatableVisibility.h
index c057b5a95e7f5ae7bef1a78937a80e4785dee18f..bbd377105d0984e159876200673d1df0dc342fbe 100644
--- a/Source/core/animation/AnimatableVisibility.h
+++ b/Source/core/animation/AnimatableVisibility.h
@@ -59,11 +59,7 @@ private:
const EVisibility m_visibility;
};
-inline const AnimatableVisibility* toAnimatableVisibility(const AnimatableValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value && value->isVisibility());
- return static_cast<const AnimatableVisibility*>(value);
-}
+DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableVisibility, isVisibility());
} // namespace WebCore
« Source/core/animation/AnimatableRepeatable.h ('K') | « Source/core/animation/AnimatableValue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698