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

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

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/SVGAnimatedNumberOptionalNumber.h ('k') | Source/core/svg/SVGAnimatedPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedNumberOptionalNumber.cpp
diff --git a/Source/core/svg/SVGAnimatedNumberOptionalNumber.cpp b/Source/core/svg/SVGAnimatedNumberOptionalNumber.cpp
index 359e7f4f1259d2a41b47f40f87f4dec6d92ec77e..bec6289f953dba3c95487d220b53b73374b71737 100644
--- a/Source/core/svg/SVGAnimatedNumberOptionalNumber.cpp
+++ b/Source/core/svg/SVGAnimatedNumberOptionalNumber.cpp
@@ -21,6 +21,8 @@
#include "core/svg/SVGAnimatedNumberOptionalNumber.h"
+#include "core/svg/SVGElement.h"
+
namespace blink {
SVGAnimatedNumberOptionalNumber::SVGAnimatedNumberOptionalNumber(SVGElement* contextElement, const QualifiedName& attributeName, float initialFirstValue, float initialSecondValue)
@@ -33,7 +35,14 @@ SVGAnimatedNumberOptionalNumber::SVGAnimatedNumberOptionalNumber(SVGElement* con
m_secondNumber->setParentOptionalNumber(this);
}
-void SVGAnimatedNumberOptionalNumber::setAnimatedValue(PassRefPtr<SVGPropertyBase> value)
+void SVGAnimatedNumberOptionalNumber::trace(Visitor* visitor)
+{
+ visitor->trace(m_firstNumber);
+ visitor->trace(m_secondNumber);
+ SVGAnimatedPropertyCommon<SVGNumberOptionalNumber>::trace(visitor);
+}
+
+void SVGAnimatedNumberOptionalNumber::setAnimatedValue(PassRefPtrWillBeRawPtr<SVGPropertyBase> value)
{
SVGAnimatedPropertyCommon<SVGNumberOptionalNumber>::setAnimatedValue(value);
m_firstNumber->setAnimatedValue(currentValue()->firstNumber());
« no previous file with comments | « Source/core/svg/SVGAnimatedNumberOptionalNumber.h ('k') | Source/core/svg/SVGAnimatedPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698