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

Unified Diff: Source/core/animation/animatable/AnimatableLength.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/animatable/AnimatableLength.h
diff --git a/Source/core/animation/animatable/AnimatableLength.h b/Source/core/animation/animatable/AnimatableLength.h
index 36b9c0347fab6045cb4dd23a483ed42c3300e9f0..a661e3c7d5d86787b4bdf709aa281a083915af18 100644
--- a/Source/core/animation/animatable/AnimatableLength.h
+++ b/Source/core/animation/animatable/AnimatableLength.h
@@ -39,9 +39,9 @@ namespace blink {
class CORE_EXPORT AnimatableLength final : public AnimatableValue {
public:
- static PassRefPtrWillBeRawPtr<AnimatableLength> create(const Length& length, float zoom)
+ static AnimatableLength* create(const Length& length, float zoom)
{
- return adoptRefWillBeNoop(new AnimatableLength(length, zoom));
+ return new AnimatableLength(length, zoom);
}
Length length(float zoom, ValueRange) const;
@@ -53,12 +53,12 @@ public:
DEFINE_INLINE_VIRTUAL_TRACE() { AnimatableValue::trace(visitor); }
protected:
- PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const override;
+ AnimatableValue* interpolateTo(const AnimatableValue*, double fraction) const override;
private:
- static PassRefPtrWillBeRawPtr<AnimatableLength> create(double pixels, double percent, bool hasPixels, bool hasPercent)
+ static AnimatableLength* create(double pixels, double percent, bool hasPixels, bool hasPercent)
{
- return adoptRefWillBeNoop(new AnimatableLength(pixels, percent, hasPixels, hasPercent));
+ return new AnimatableLength(pixels, percent, hasPixels, hasPercent);
}
AnimatableLength(const Length&, float zoom);
AnimatableLength(double pixels, double percent, bool hasPixels, bool hasPercent)
« no previous file with comments | « Source/core/animation/animatable/AnimatableImage.cpp ('k') | Source/core/animation/animatable/AnimatableLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698