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

Unified Diff: Source/core/animation/animatable/AnimatableLengthPoint3D.h

Issue 370073002: Use type cast macro for AnimatableLengthPoint|3D instead of manual toFoo() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 5 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/animatable/AnimatableLengthPoint3D.h
diff --git a/Source/core/animation/animatable/AnimatableLengthPoint3D.h b/Source/core/animation/animatable/AnimatableLengthPoint3D.h
index 8de7f7a1b340e25969bfe3ccdb601d07b6776a9a..86378d6c0b00672857b24c3f87c0d80ae0c92af2 100644
--- a/Source/core/animation/animatable/AnimatableLengthPoint3D.h
+++ b/Source/core/animation/animatable/AnimatableLengthPoint3D.h
@@ -66,11 +66,7 @@ private:
RefPtrWillBeMember<AnimatableValue> m_z;
};
-inline const AnimatableLengthPoint3D* toAnimatableLengthPoint3D(const AnimatableValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value && value->isLengthPoint3D());
- return static_cast<const AnimatableLengthPoint3D*>(value);
-}
+DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint3D, isLengthPoint3D());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698