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()); |
} |
} |