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

Unified Diff: Source/core/animation/animatable/AnimatableValue.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/AnimatableValue.cpp
diff --git a/Source/core/animation/animatable/AnimatableValue.cpp b/Source/core/animation/animatable/AnimatableValue.cpp
index 5a7666886a34caf128b3d6d16321d4435d1e486b..8fcb5ca97589cdd0d2ec97d89c6c27822c0ec809 100644
--- a/Source/core/animation/animatable/AnimatableValue.cpp
+++ b/Source/core/animation/animatable/AnimatableValue.cpp
@@ -39,11 +39,11 @@ namespace blink {
const AnimatableValue* AnimatableValue::neutralValue()
{
- DEFINE_STATIC_REF_WILL_BE_PERSISTENT(AnimatableNeutral, neutralSentinelValue, (AnimatableNeutral::create()));
+ static AnimatableNeutral* neutralSentinelValue = (new Persistent<AnimatableNeutral>(AnimatableNeutral::create()))->get();
return neutralSentinelValue;
}
-PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableValue::interpolate(const AnimatableValue* left, const AnimatableValue* right, double fraction)
+AnimatableValue* AnimatableValue::interpolate(const AnimatableValue* left, const AnimatableValue* right, double fraction)
{
ASSERT(left);
ASSERT(right);
« no previous file with comments | « Source/core/animation/animatable/AnimatableValue.h ('k') | Source/core/animation/animatable/AnimatableValueKeyframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698