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

Unified Diff: Source/core/svg/SVGIntegerOptionalInteger.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/SVGInteger.cpp ('k') | Source/core/svg/SVGIntegerOptionalInteger.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGIntegerOptionalInteger.h
diff --git a/Source/core/svg/SVGIntegerOptionalInteger.h b/Source/core/svg/SVGIntegerOptionalInteger.h
index 6ebdfd22d61d4967163d896e4f036673a9273218..264b6e168872c59035954c1594aa00f9a4b9c6b1 100644
--- a/Source/core/svg/SVGIntegerOptionalInteger.h
+++ b/Source/core/svg/SVGIntegerOptionalInteger.h
@@ -32,6 +32,7 @@
#define SVGIntegerOptionalInteger_h
#include "core/svg/SVGAnimatedInteger.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -41,36 +42,38 @@ public:
typedef void TearOffType;
typedef void PrimitiveType;
- static PassRefPtr<SVGIntegerOptionalInteger> create(PassRefPtr<SVGInteger> firstInteger, PassRefPtr<SVGInteger> secondInteger)
+ static PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> create(PassRefPtrWillBeRawPtr<SVGInteger> firstInteger, PassRefPtrWillBeRawPtr<SVGInteger> secondInteger)
{
- return adoptRef(new SVGIntegerOptionalInteger(firstInteger, secondInteger));
+ return adoptRefWillBeNoop(new SVGIntegerOptionalInteger(firstInteger, secondInteger));
}
- PassRefPtr<SVGIntegerOptionalInteger> clone() const;
- virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String&) const override;
+ PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> clone() const;
+ virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const String&) const override;
virtual String valueAsString() const override;
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 AnimatedIntegerOptionalInteger; }
- PassRefPtr<SVGInteger> firstInteger() { return m_firstInteger; }
- PassRefPtr<SVGInteger> secondInteger() { return m_secondInteger; }
+ PassRefPtrWillBeRawPtr<SVGInteger> firstInteger() { return m_firstInteger; }
+ PassRefPtrWillBeRawPtr<SVGInteger> secondInteger() { return m_secondInteger; }
+
+ virtual void trace(Visitor*) override;
protected:
- SVGIntegerOptionalInteger(PassRefPtr<SVGInteger> firstInteger, PassRefPtr<SVGInteger> secondInteger);
+ SVGIntegerOptionalInteger(PassRefPtrWillBeRawPtr<SVGInteger> firstInteger, PassRefPtrWillBeRawPtr<SVGInteger> secondInteger);
- RefPtr<SVGInteger> m_firstInteger;
- RefPtr<SVGInteger> m_secondInteger;
+ RefPtrWillBeMember<SVGInteger> m_firstInteger;
+ RefPtrWillBeMember<SVGInteger> m_secondInteger;
};
-inline PassRefPtr<SVGIntegerOptionalInteger> toSVGIntegerOptionalInteger(PassRefPtr<SVGPropertyBase> passBase)
+inline PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> toSVGIntegerOptionalInteger(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
{
- RefPtr<SVGPropertyBase> base = passBase;
+ RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGIntegerOptionalInteger::classType());
return static_pointer_cast<SVGIntegerOptionalInteger>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGInteger.cpp ('k') | Source/core/svg/SVGIntegerOptionalInteger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698