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

Unified Diff: Source/core/animation/interpolation/LegacyStyleInterpolation.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/animation/animatable/AnimatableLengthPoint3D.h ('k') | Source/core/css/BasicShapeFunctions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/interpolation/LegacyStyleInterpolation.h
diff --git a/Source/core/animation/interpolation/LegacyStyleInterpolation.h b/Source/core/animation/interpolation/LegacyStyleInterpolation.h
index d16bd994f4a921380f03b7dd63eb772d3125ed49..7a97621dc1c000b1fcca51386423fb3028f1f751 100644
--- a/Source/core/animation/interpolation/LegacyStyleInterpolation.h
+++ b/Source/core/animation/interpolation/LegacyStyleInterpolation.h
@@ -25,8 +25,7 @@ public:
virtual bool isLegacyStyleInterpolation() const OVERRIDE FINAL { return true; }
PassRefPtrWillBeRawPtr<AnimatableValue> currentValue() const
{
- InterpolableAnimatableValue* value = static_cast<InterpolableAnimatableValue*>(m_cachedValue.get());
- return value->value();
+ return toInterpolableAnimatableValue(m_cachedValue.get())->value();
}
virtual void trace(Visitor* visitor) OVERRIDE
« no previous file with comments | « Source/core/animation/animatable/AnimatableLengthPoint3D.h ('k') | Source/core/css/BasicShapeFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698