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

Unified Diff: Source/core/animation/animatable/AnimatableSVGPaint.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/AnimatableSVGPaint.h
diff --git a/Source/core/animation/animatable/AnimatableSVGPaint.h b/Source/core/animation/animatable/AnimatableSVGPaint.h
index 7e460a31efaacf122ac30326197ec2fd25b64d62..dcdec2e773e45e957bc4fa7f4f6ef0d825ead038 100644
--- a/Source/core/animation/animatable/AnimatableSVGPaint.h
+++ b/Source/core/animation/animatable/AnimatableSVGPaint.h
@@ -40,19 +40,19 @@ namespace blink {
class AnimatableSVGPaint final : public AnimatableValue {
public:
~AnimatableSVGPaint() override { }
- static PassRefPtrWillBeRawPtr<AnimatableSVGPaint> create(
+ static AnimatableSVGPaint* create(
SVGPaintType type, SVGPaintType visitedLinkType,
const Color& color, const Color& visitedLinkColor,
const String& uri, const String& visitedLinkURI)
{
return create(type, visitedLinkType, AnimatableColor::create(color, visitedLinkColor), uri, visitedLinkURI);
}
- static PassRefPtrWillBeRawPtr<AnimatableSVGPaint> create(
+ static AnimatableSVGPaint* create(
SVGPaintType type, SVGPaintType visitedLinkType,
- PassRefPtrWillBeRawPtr<AnimatableColor> color,
+ AnimatableColor* color,
const String& uri, const String& visitedLinkURI)
{
- return adoptRefWillBeNoop(new AnimatableSVGPaint(type, visitedLinkType, color, uri, visitedLinkURI));
+ return new AnimatableSVGPaint(type, visitedLinkType, color, uri, visitedLinkURI);
}
SVGPaintType paintType() const { return m_type; }
SVGPaintType visitedLinkPaintType() const { return m_visitedLinkType; }
@@ -68,11 +68,11 @@ public:
}
protected:
- PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const override;
+ AnimatableValue* interpolateTo(const AnimatableValue*, double fraction) const override;
bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
- AnimatableSVGPaint(SVGPaintType type, SVGPaintType visitedLinkType, PassRefPtrWillBeRawPtr<AnimatableColor> color, const String& uri, const String& visitedLinkURI)
+ AnimatableSVGPaint(SVGPaintType type, SVGPaintType visitedLinkType, AnimatableColor* color, const String& uri, const String& visitedLinkURI)
: m_type(type)
, m_visitedLinkType(visitedLinkType)
, m_color(color)
@@ -86,7 +86,7 @@ private:
SVGPaintType m_type;
SVGPaintType m_visitedLinkType;
// AnimatableColor includes a visited link color.
- RefPtrWillBeMember<AnimatableColor> m_color;
+ Member<AnimatableColor> m_color;
String m_uri;
String m_visitedLinkURI;
};
« no previous file with comments | « Source/core/animation/animatable/AnimatableRepeatable.cpp ('k') | Source/core/animation/animatable/AnimatableSVGPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698