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

Unified Diff: Source/core/animation/AnimatableLengthSize.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/AnimatableLengthSize.h
diff --git a/Source/core/animation/AnimatableLengthSize.h b/Source/core/animation/AnimatableLengthSize.h
index c436045962ccb467a15a68235c2629b0bf64e73f..55dcc4090d3775d77286e7a4c2ae599de1271a5d 100644
--- a/Source/core/animation/AnimatableLengthSize.h
+++ b/Source/core/animation/AnimatableLengthSize.h
@@ -62,11 +62,7 @@ private:
RefPtr<AnimatableValue> m_height;
};
-inline const AnimatableLengthSize* toAnimatableLengthSize(const AnimatableValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value && value->isLengthSize());
- return static_cast<const AnimatableLengthSize*>(value);
-}
+DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthSize, isLengthSize());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698