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

Unified Diff: Source/core/animation/animatable/AnimatableColor.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: Rebase Created 5 years, 4 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/AnimatableColor.cpp
diff --git a/Source/core/animation/animatable/AnimatableColor.cpp b/Source/core/animation/animatable/AnimatableColor.cpp
index 337fe3c96dc09bcdb403bd4a424079ddb1fe75f3..1c16b8a0239ea5649c7c7e102f214551ef2b374d 100644
--- a/Source/core/animation/animatable/AnimatableColor.cpp
+++ b/Source/core/animation/animatable/AnimatableColor.cpp
@@ -74,12 +74,12 @@ bool AnimatableColorImpl::operator==(const AnimatableColorImpl& other) const
&& m_alpha == other.m_alpha;
}
-PassRefPtrWillBeRawPtr<AnimatableColor> AnimatableColor::create(const AnimatableColorImpl& color, const AnimatableColorImpl& visitedLinkColor)
+AnimatableColor* AnimatableColor::create(const AnimatableColorImpl& color, const AnimatableColorImpl& visitedLinkColor)
{
- return adoptRefWillBeNoop(new AnimatableColor(color, visitedLinkColor));
+ return new AnimatableColor(color, visitedLinkColor);
}
-PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableColor::interpolateTo(const AnimatableValue* value, double fraction) const
+AnimatableValue* AnimatableColor::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableColor* color = toAnimatableColor(value);
return create(m_color.interpolateTo(color->m_color, fraction),
« no previous file with comments | « Source/core/animation/animatable/AnimatableColor.h ('k') | Source/core/animation/animatable/AnimatableDouble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698