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

Unified Diff: Source/core/animation/ColorStyleInterpolation.h

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/ColorStyleInterpolation.h
diff --git a/Source/core/animation/ColorStyleInterpolation.h b/Source/core/animation/ColorStyleInterpolation.h
index cc25f026afc8457059bdf7368bdf1ab27ac03df0..d415d5f0bb5932fcebad05487f6d5ab9af5c9862 100644
--- a/Source/core/animation/ColorStyleInterpolation.h
+++ b/Source/core/animation/ColorStyleInterpolation.h
@@ -14,12 +14,12 @@ namespace blink {
class CORE_EXPORT ColorStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<ColorStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
+ static ColorStyleInterpolation* create(const CSSValue& start, const CSSValue& end, CSSPropertyID id)
{
- return adoptRefWillBeNoop(new ColorStyleInterpolation(colorToInterpolableValue(start), colorToInterpolableValue(end), id));
+ return new ColorStyleInterpolation(colorToInterpolableValue(start), colorToInterpolableValue(end), id);
}
- static PassRefPtrWillBeRawPtr<ColorStyleInterpolation> maybeCreateFromColor(const CSSValue& start, const CSSValue& end, CSSPropertyID);
+ static ColorStyleInterpolation* maybeCreateFromColor(const CSSValue& start, const CSSValue& end, CSSPropertyID);
static bool shouldUseLegacyStyleInterpolation(const CSSValue& start, const CSSValue& end);
@@ -30,12 +30,12 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- ColorStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
+ ColorStyleInterpolation(InterpolableValue* start, InterpolableValue* end, CSSPropertyID id)
: StyleInterpolation(start, end, id)
{
}
- static PassOwnPtrWillBeRawPtr<InterpolableValue> colorToInterpolableValue(const CSSValue&);
+ static InterpolableValue* colorToInterpolableValue(const CSSValue&);
static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> interpolableValueToColor(const InterpolableValue&);
friend class AnimationColorStyleInterpolationTest;
« no previous file with comments | « Source/core/animation/CSSValueInterpolationType.cpp ('k') | Source/core/animation/ColorStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698