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

Unified Diff: Source/core/animation/AnimatableColor.cpp

Issue 204743002: Oilpan: Move AnimatableValue's hierarchy to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/AnimatableColor.h ('k') | Source/core/animation/AnimatableColorTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableColor.cpp
diff --git a/Source/core/animation/AnimatableColor.cpp b/Source/core/animation/AnimatableColor.cpp
index 011e77e27b8da886219293f6d21e76843fd1624e..12b4a6eba166520f250ad67e9d93dcc5b12f2469 100644
--- a/Source/core/animation/AnimatableColor.cpp
+++ b/Source/core/animation/AnimatableColor.cpp
@@ -100,19 +100,19 @@ double AnimatableColorImpl::distanceTo(const AnimatableColorImpl& other) const
+ square(m_alpha - other.m_alpha));
}
-PassRefPtr<AnimatableColor> AnimatableColor::create(const AnimatableColorImpl& color, const AnimatableColorImpl& visitedLinkColor)
+PassRefPtrWillBeRawPtr<AnimatableColor> AnimatableColor::create(const AnimatableColorImpl& color, const AnimatableColorImpl& visitedLinkColor)
{
- return adoptRef(new AnimatableColor(color, visitedLinkColor));
+ return adoptRefWillBeNoop(new AnimatableColor(color, visitedLinkColor));
}
-PassRefPtr<AnimatableValue> AnimatableColor::interpolateTo(const AnimatableValue* value, double fraction) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableColor::interpolateTo(const AnimatableValue* value, double fraction) const
{
const AnimatableColor* color = toAnimatableColor(value);
return create(m_color.interpolateTo(color->m_color, fraction),
m_visitedLinkColor.interpolateTo(color->m_visitedLinkColor, fraction));
}
-PassRefPtr<AnimatableValue> AnimatableColor::addWith(const AnimatableValue* value) const
+PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableColor::addWith(const AnimatableValue* value) const
{
const AnimatableColor* color = toAnimatableColor(value);
return create(m_color.addWith(color->m_color),
« no previous file with comments | « Source/core/animation/AnimatableColor.h ('k') | Source/core/animation/AnimatableColorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698