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

Unified Diff: Source/core/svg/SVGInteger.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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/svg/SVGImageElement.cpp ('k') | Source/core/svg/SVGInteger.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGInteger.h
diff --git a/Source/core/svg/SVGInteger.h b/Source/core/svg/SVGInteger.h
index 3c63a7c6876cf597befeb71b96d1b1352fa624ac..69db4a88ffcb8a331c8dfcbfcdf0fcab5cac33d3 100644
--- a/Source/core/svg/SVGInteger.h
+++ b/Source/core/svg/SVGInteger.h
@@ -42,12 +42,12 @@ public:
typedef void TearOffType;
typedef int PrimitiveType;
- static PassRefPtr<SVGInteger> create(int value = 0)
+ static PassRefPtrWillBeRawPtr<SVGInteger> create(int value = 0)
{
- return adoptRef(new SVGInteger(value));
+ return adoptRefWillBeNoop(new SVGInteger(value));
}
- virtual PassRefPtr<SVGInteger> clone() const;
+ virtual PassRefPtrWillBeRawPtr<SVGInteger> clone() const;
int value() const { return m_value; }
void setValue(int value) { m_value = value; }
@@ -56,8 +56,8 @@ public:
virtual void setValueAsString(const String&, ExceptionState&);
virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) override;
- virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement) override;
- virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement* contextElement) override;
+ virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement) override;
+ virtual float calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement* contextElement) override;
static AnimatedPropertyType classType() { return AnimatedInteger; }
@@ -67,9 +67,9 @@ protected:
int m_value;
};
-inline PassRefPtr<SVGInteger> toSVGInteger(PassRefPtr<SVGPropertyBase> passBase)
+inline PassRefPtrWillBeRawPtr<SVGInteger> toSVGInteger(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
{
- RefPtr<SVGPropertyBase> base = passBase;
+ RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGInteger::classType());
return static_pointer_cast<SVGInteger>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGImageElement.cpp ('k') | Source/core/svg/SVGInteger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698