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/properties/NewSVGAnimatedProperty.cpp

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years 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/properties/NewSVGAnimatedProperty.cpp
diff --git a/Source/core/svg/properties/NewSVGAnimatedProperty.cpp b/Source/core/svg/properties/NewSVGAnimatedProperty.cpp
index 2ec8cc7a278fc5d3e60cf04d232a0041053b23a9..27f43af79d57b4e2b49e898654e7ff5f5494d2d1 100644
--- a/Source/core/svg/properties/NewSVGAnimatedProperty.cpp
+++ b/Source/core/svg/properties/NewSVGAnimatedProperty.cpp
@@ -35,12 +35,20 @@
namespace WebCore {
+NewSVGAnimatedPropertyBase::NewSVGAnimatedPropertyBase(SVGElement* contextElement, const QualifiedName& attributeName)
+ : m_contextElement(contextElement)
+ , m_attributeName(attributeName)
+{
+ contextElement->setContextElement();
+}
+
NewSVGAnimatedPropertyBase::~NewSVGAnimatedPropertyBase()
{
}
void NewSVGAnimatedPropertyBase::synchronizeAttribute()
{
+ ASSERT(needsSynchronizeAttribute());
AtomicString value(currentValueBase()->valueAsString());
m_contextElement->setSynchronizedLazyAttribute(m_attributeName, value);
}

Powered by Google App Engine
This is Rietveld 408576698