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

Unified Diff: Source/core/animation/animatable/AnimatableSVGPaint.cpp

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resize expect size of Persistent Created 5 years, 7 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/AnimatableSVGPaint.cpp
diff --git a/Source/core/animation/animatable/AnimatableSVGPaint.cpp b/Source/core/animation/animatable/AnimatableSVGPaint.cpp
index ad9fe1411269fd2b431941a568fa10392eb5748c..0ca6f61fe05b53f798573281fc32d610ea207f0a 100644
--- a/Source/core/animation/animatable/AnimatableSVGPaint.cpp
+++ b/Source/core/animation/animatable/AnimatableSVGPaint.cpp
@@ -40,13 +40,13 @@ bool AnimatableSVGPaint::usesDefaultInterpolationWith(const AnimatableValue* val
&& (visitedLinkPaintType() != SVG_PAINTTYPE_RGBCOLOR || svgPaint->visitedLinkPaintType() != SVG_PAINTTYPE_RGBCOLOR);
}
-PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableSVGPaint::interpolateTo(const AnimatableValue* value, double fraction) const
+AnimatableValue* AnimatableSVGPaint::interpolateTo(const AnimatableValue* value, double fraction) const
{
if (usesDefaultInterpolationWith(value))
return defaultInterpolateTo(this, value, fraction);
const AnimatableSVGPaint* svgPaint = toAnimatableSVGPaint(value);
- RefPtrWillBeRawPtr<AnimatableColor> color = toAnimatableColor(AnimatableValue::interpolate(m_color.get(), svgPaint->m_color.get(), fraction).get());
+ AnimatableColor* color = toAnimatableColor(AnimatableValue::interpolate(m_color.get(), svgPaint->m_color.get(), fraction));
if (fraction < 0.5)
return create(paintType(), visitedLinkPaintType(), color, uri(), visitedLinkURI());
return create(svgPaint->paintType(), svgPaint->visitedLinkPaintType(), color, svgPaint->uri(), svgPaint->visitedLinkURI());

Powered by Google App Engine
This is Rietveld 408576698