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

Unified Diff: Source/core/svg/SVGString.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/SVGStopElement.cpp ('k') | Source/core/svg/SVGString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGString.h
diff --git a/Source/core/svg/SVGString.h b/Source/core/svg/SVGString.h
index f686bd953f36b0b573ed3b8ba2c3d1d2475a4df5..5d2a0d8461e5036dac92c07fc15e639a69473336 100644
--- a/Source/core/svg/SVGString.h
+++ b/Source/core/svg/SVGString.h
@@ -43,18 +43,18 @@ public:
typedef void TearOffType;
typedef String PrimitiveType;
- static PassRefPtr<SVGString> create()
+ static PassRefPtrWillBeRawPtr<SVGString> create()
{
- return adoptRef(new SVGString());
+ return adoptRefWillBeNoop(new SVGString());
}
- static PassRefPtr<SVGString> create(const String& value)
+ static PassRefPtrWillBeRawPtr<SVGString> create(const String& value)
{
- return adoptRef(new SVGString(value));
+ return adoptRefWillBeNoop(new SVGString(value));
}
- PassRefPtr<SVGString> clone() const { return create(m_value); }
- virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String& value) const override
+ PassRefPtrWillBeRawPtr<SVGString> clone() const { return create(m_value); }
+ virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const String& value) const override
{
return create(value);
}
@@ -63,8 +63,8 @@ public:
void setValueAsString(const String& value, ExceptionState&) { m_value = value; }
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*) override;
- virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) override;
+ virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> from, PassRefPtrWillBeRawPtr<SVGPropertyBase> to, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) override;
+ virtual float calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*) override;
const String& value() const { return m_value; }
void setValue(const String& value) { m_value = value; }
@@ -86,9 +86,9 @@ private:
String m_value;
};
-inline PassRefPtr<SVGString> toSVGString(PassRefPtr<SVGPropertyBase> passBase)
+inline PassRefPtrWillBeRawPtr<SVGString> toSVGString(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
{
- RefPtr<SVGPropertyBase> base = passBase;
+ RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGString::classType());
return static_pointer_cast<SVGString>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGStopElement.cpp ('k') | Source/core/svg/SVGString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698