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

Unified Diff: third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp

Issue 2360083002: Remove SVGSVGElement dependency from SVGTransformListTearOff (Closed)
Patch Set: Created 4 years, 3 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 | « third_party/WebKit/Source/core/svg/SVGTransformTearOff.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp
index 7ac5b81ffa785009a89cbd4458f8910b9f75645f..2fee9226c288feea05bb0199d999c3179d420442 100644
--- a/third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp
@@ -31,6 +31,7 @@
#include "core/svg/SVGTransformTearOff.h"
#include "core/svg/SVGElement.h"
+#include "core/svg/SVGMatrixTearOff.h"
namespace blink {
@@ -49,6 +50,11 @@ DEFINE_TRACE(SVGTransformTearOff)
SVGPropertyTearOff<SVGTransform>::trace(visitor);
}
+SVGTransformTearOff* SVGTransformTearOff::create(SVGMatrixTearOff* matrix)
+{
+ return create(SVGTransform::create(matrix->value()), nullptr, PropertyIsNotAnimVal);
+}
+
SVGMatrixTearOff* SVGTransformTearOff::matrix()
{
if (!m_matrixTearoff)
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTransformTearOff.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698