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

Unified Diff: Source/core/svg/SVGStaticStringList.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/SVGScriptElement.cpp ('k') | Source/core/svg/SVGStaticStringList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStaticStringList.h
diff --git a/Source/core/svg/SVGStaticStringList.h b/Source/core/svg/SVGStaticStringList.h
index e007bdee708bbebb0c7f4a6476d21e8a9c9bbb27..4805bf87d65e03bdfbb12bad041955563645b2e6 100644
--- a/Source/core/svg/SVGStaticStringList.h
+++ b/Source/core/svg/SVGStaticStringList.h
@@ -33,6 +33,7 @@
#include "core/svg/SVGStringListTearOff.h"
#include "core/svg/properties/SVGAnimatedProperty.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -42,9 +43,9 @@ class SVGElement;
// Inherits SVGAnimatedPropertyBase to enable XML attribute synchronization, but this is never animated.
class SVGStaticStringList final : public SVGAnimatedPropertyBase {
public:
- static PassRefPtr<SVGStaticStringList> create(SVGElement* contextElement, const QualifiedName& attributeName)
+ static PassRefPtrWillBeRawPtr<SVGStaticStringList> create(SVGElement* contextElement, const QualifiedName& attributeName)
{
- return adoptRef(new SVGStaticStringList(contextElement, attributeName));
+ return adoptRefWillBeNoop(new SVGStaticStringList(contextElement, attributeName));
}
virtual ~SVGStaticStringList();
@@ -52,8 +53,8 @@ public:
// SVGAnimatedPropertyBase:
virtual SVGPropertyBase* currentValueBase() override;
virtual bool isAnimating() const override;
- virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() override;
- virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) override;
+ virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> createAnimatedValue() override;
+ virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) override;
virtual void animationEnded() override;
virtual bool needsSynchronizeAttribute() override;
@@ -62,11 +63,13 @@ public:
SVGStringList* value() { return m_value.get(); }
SVGStringListTearOff* tearOff();
+ virtual void trace(Visitor*) override;
+
private:
SVGStaticStringList(SVGElement*, const QualifiedName&);
- RefPtr<SVGStringList> m_value;
- RefPtr<SVGStringListTearOff> m_tearOff;
+ RefPtrWillBeMember<SVGStringList> m_value;
+ RefPtrWillBeMember<SVGStringListTearOff> m_tearOff;
};
}
« no previous file with comments | « Source/core/svg/SVGScriptElement.cpp ('k') | Source/core/svg/SVGStaticStringList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698