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

Unified Diff: Source/core/animation/animatable/AnimatableLengthPoint.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
« no previous file with comments | « Source/core/accessibility/AXTable.cpp ('k') | Source/core/animation/animatable/AnimatableLengthPoint3D.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/animatable/AnimatableLengthPoint.h
diff --git a/Source/core/animation/animatable/AnimatableLengthPoint.h b/Source/core/animation/animatable/AnimatableLengthPoint.h
index 3c03de59459abf0ae1123146f1fab66f785d2f64..9ea3930db43b72fa3d97b472664ea9214b2222f4 100644
--- a/Source/core/animation/animatable/AnimatableLengthPoint.h
+++ b/Source/core/animation/animatable/AnimatableLengthPoint.h
@@ -63,11 +63,7 @@ private:
RefPtrWillBeMember<AnimatableValue> m_y;
};
-inline const AnimatableLengthPoint* toAnimatableLengthPoint(const AnimatableValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value && value->isLengthPoint());
- return static_cast<const AnimatableLengthPoint*>(value);
-}
+DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint, isLengthPoint());
} // namespace WebCore
« no previous file with comments | « Source/core/accessibility/AXTable.cpp ('k') | Source/core/animation/animatable/AnimatableLengthPoint3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698