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

Unified Diff: Source/core/svg/SVGAnimatedNumberOptionalNumber.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 2 months 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
Index: Source/core/svg/SVGAnimatedNumberOptionalNumber.h
diff --git a/Source/core/svg/SVGAnimatedNumberOptionalNumber.h b/Source/core/svg/SVGAnimatedNumberOptionalNumber.h
index 302a403a671d34c59743f41ff23aaeda09aea769..168d7e42ed1aa4917cb79209aad118221a12487e 100644
--- a/Source/core/svg/SVGAnimatedNumberOptionalNumber.h
+++ b/Source/core/svg/SVGAnimatedNumberOptionalNumber.h
@@ -33,6 +33,7 @@
#include "core/svg/SVGAnimatedNumber.h"
#include "core/svg/SVGNumberOptionalNumber.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -43,23 +44,25 @@ namespace blink {
// For example, see SVGFEDropShadowElement::stdDeviation{X,Y}()
class SVGAnimatedNumberOptionalNumber : public SVGAnimatedPropertyCommon<SVGNumberOptionalNumber> {
public:
- static PassRefPtr<SVGAnimatedNumberOptionalNumber> create(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue = 0, float initialSecondValue = 0)
+ static PassRefPtrWillBeRawPtr<SVGAnimatedNumberOptionalNumber> create(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue = 0, float initialSecondValue = 0)
{
- return adoptRef(new SVGAnimatedNumberOptionalNumber(contextElement, attributeName, initialFirstValue, initialSecondValue));
+ return adoptRefWillBeNoop(new SVGAnimatedNumberOptionalNumber(contextElement, attributeName, initialFirstValue, initialSecondValue));
}
- virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) override;
+ virtual void setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase>) override;
virtual bool needsSynchronizeAttribute() override;
virtual void animationEnded() override;
SVGAnimatedNumber* firstNumber() { return m_firstNumber.get(); }
SVGAnimatedNumber* secondNumber() { return m_secondNumber.get(); }
+ virtual void trace(Visitor*) override;
+
protected:
SVGAnimatedNumberOptionalNumber(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue, float initialSecondValue);
- RefPtr<SVGAnimatedNumber> m_firstNumber;
- RefPtr<SVGAnimatedNumber> m_secondNumber;
+ RefPtrWillBeMember<SVGAnimatedNumber> m_firstNumber;
+ RefPtrWillBeMember<SVGAnimatedNumber> m_secondNumber;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698