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

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

Issue 153883003: [SVG] SVGAnimatedTransform{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove m_zoomAndPan Created 6 years, 10 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
« no previous file with comments | « Source/core/svg/SVGTransformListTearOff.h ('k') | Source/core/svg/SVGTransformTearOff.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTransformListTearOff.cpp
diff --git a/Source/core/svg/SVGNumberTearOff.cpp b/Source/core/svg/SVGTransformListTearOff.cpp
similarity index 68%
copy from Source/core/svg/SVGNumberTearOff.cpp
copy to Source/core/svg/SVGTransformListTearOff.cpp
index 534ca7aa5e509895885529f36301b5f846069033..9dae2da6a3f80b19d348c4f8b1d4d3b00b0fa6bf 100644
--- a/Source/core/svg/SVGNumberTearOff.cpp
+++ b/Source/core/svg/SVGTransformListTearOff.cpp
@@ -29,29 +29,37 @@
*/
#include "config.h"
-
-#include "core/svg/SVGNumberTearOff.h"
+#include "core/svg/SVGTransformListTearOff.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
+#include "core/svg/SVGSVGElement.h"
namespace WebCore {
-SVGNumberTearOff::SVGNumberTearOff(PassRefPtr<SVGNumber> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName)
- : NewSVGPropertyTearOff<SVGNumber>(target, contextElement, propertyIsAnimVal, attributeName)
+SVGTransformListTearOff::SVGTransformListTearOff(PassRefPtr<SVGTransformList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
+ : NewSVGListPropertyTearOffHelper<SVGTransformListTearOff, SVGTransformList>(target, contextElement, propertyIsAnimVal, attributeName)
{
ScriptWrappable::init(this);
}
-void SVGNumberTearOff::setValue(float f, ExceptionState& exceptionState)
+SVGTransformListTearOff::~SVGTransformListTearOff()
+{
+}
+
+PassRefPtr<SVGTransformTearOff> SVGTransformListTearOff::createSVGTransformFromMatrix(PassRefPtr<SVGMatrixTearOff> matrix) const
+{
+ return SVGSVGElement::createSVGTransformFromMatrix(matrix);
+}
+
+PassRefPtr<SVGTransformTearOff> SVGTransformListTearOff::consolidate(ExceptionState& exceptionState)
{
if (isImmutable()) {
exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
- return;
+ return 0;
}
- target()->setValue(f);
- commitChange();
+ return createItemTearOff(target()->consolidate());
}
}
« no previous file with comments | « Source/core/svg/SVGTransformListTearOff.h ('k') | Source/core/svg/SVGTransformTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698