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

Unified Diff: Source/core/svg/SVGAnimatedIntegerOptionalInteger.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/SVGAnimatedInteger.idl ('k') | Source/core/svg/SVGAnimatedIntegerOptionalInteger.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedIntegerOptionalInteger.h
diff --git a/Source/core/svg/SVGAnimatedIntegerOptionalInteger.h b/Source/core/svg/SVGAnimatedIntegerOptionalInteger.h
index e086a81483d30a8d2627c7a88881a0052b5a5502..2e9b4b5a3bb49073c03ea36a9fdce9acbdc25ba4 100644
--- a/Source/core/svg/SVGAnimatedIntegerOptionalInteger.h
+++ b/Source/core/svg/SVGAnimatedIntegerOptionalInteger.h
@@ -33,6 +33,7 @@
#include "core/svg/SVGAnimatedInteger.h"
#include "core/svg/SVGIntegerOptionalInteger.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -43,23 +44,25 @@ namespace blink {
// For example, see SVGFEDropShadowElement::stdDeviation{X,Y}()
class SVGAnimatedIntegerOptionalInteger : public SVGAnimatedPropertyCommon<SVGIntegerOptionalInteger> {
public:
- static PassRefPtr<SVGAnimatedIntegerOptionalInteger> create(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue = 0, float initialSecondValue = 0)
+ static PassRefPtrWillBeRawPtr<SVGAnimatedIntegerOptionalInteger> create(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue = 0, float initialSecondValue = 0)
{
- return adoptRef(new SVGAnimatedIntegerOptionalInteger(contextElement, attributeName, initialFirstValue, initialSecondValue));
+ return adoptRefWillBeNoop(new SVGAnimatedIntegerOptionalInteger(contextElement, attributeName, initialFirstValue, initialSecondValue));
}
- virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) override;
+ virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) override;
virtual bool needsSynchronizeAttribute() override;
virtual void animationEnded() override;
SVGAnimatedInteger* firstInteger() { return m_firstInteger.get(); }
SVGAnimatedInteger* secondInteger() { return m_secondInteger.get(); }
+ virtual void trace(Visitor*) override;
+
protected:
SVGAnimatedIntegerOptionalInteger(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue, float initialSecondValue);
- RefPtr<SVGAnimatedInteger> m_firstInteger;
- RefPtr<SVGAnimatedInteger> m_secondInteger;
+ RefPtrWillBeMember<SVGAnimatedInteger> m_firstInteger;
+ RefPtrWillBeMember<SVGAnimatedInteger> m_secondInteger;
};
} // namespace blink
« no previous file with comments | « Source/core/svg/SVGAnimatedInteger.idl ('k') | Source/core/svg/SVGAnimatedIntegerOptionalInteger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698