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

Unified Diff: Source/core/svg/SVGRect.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/SVGRadialGradientElement.cpp ('k') | Source/core/svg/SVGRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGRect.h
diff --git a/Source/core/svg/SVGRect.h b/Source/core/svg/SVGRect.h
index 4d31f7622662e88792d580e66cc47013ed1ef786..b81f5f94689b7d7432f9f3c71d82e0f7711b73f6 100644
--- a/Source/core/svg/SVGRect.h
+++ b/Source/core/svg/SVGRect.h
@@ -33,22 +33,22 @@ public:
struct InvalidSVGRectTag { };
- static PassRefPtr<SVGRect> create()
+ static PassRefPtrWillBeRawPtr<SVGRect> create()
{
- return adoptRef(new SVGRect());
+ return adoptRefWillBeNoop(new SVGRect());
}
- static PassRefPtr<SVGRect> create(InvalidSVGRectTag)
+ static PassRefPtrWillBeRawPtr<SVGRect> create(InvalidSVGRectTag)
{
- return adoptRef(new SVGRect(InvalidSVGRectTag()));
+ return adoptRefWillBeNoop(new SVGRect(InvalidSVGRectTag()));
}
- static PassRefPtr<SVGRect> create(const FloatRect& rect)
+ static PassRefPtrWillBeRawPtr<SVGRect> create(const FloatRect& rect)
{
- return adoptRef(new SVGRect(rect));
+ return adoptRefWillBeNoop(new SVGRect(rect));
}
- PassRefPtr<SVGRect> clone() const;
+ PassRefPtrWillBeRawPtr<SVGRect> clone() const;
const FloatRect& value() const { return m_value; }
void setValue(const FloatRect& v) { m_value = v; }
@@ -66,8 +66,8 @@ public:
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;
bool isValid() const { return m_isValid; }
void setInvalid();
@@ -86,9 +86,9 @@ private:
FloatRect m_value;
};
-inline PassRefPtr<SVGRect> toSVGRect(PassRefPtr<SVGPropertyBase> passBase)
+inline PassRefPtrWillBeRawPtr<SVGRect> toSVGRect(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
{
- RefPtr<SVGPropertyBase> base = passBase;
+ RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGRect::classType());
return static_pointer_cast<SVGRect>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGRadialGradientElement.cpp ('k') | Source/core/svg/SVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698