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

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

Issue 2912663002: Clean up creation of "detached" SVG* data type objects (Closed)
Patch Set: Created 3 years, 7 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
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 fa1f5b56fcd7f3671329fe6431cae935b5200760..4f2b54cad0f9b5d6804fcca4543cd6148445a734 100644
--- a/third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp
@@ -52,9 +52,14 @@ DEFINE_TRACE(SVGTransformTearOff) {
SVGPropertyTearOff<SVGTransform>::Trace(visitor);
}
+SVGTransformTearOff* SVGTransformTearOff::CreateDetached() {
+ return Create(SVGTransform::Create(blink::kSvgTransformMatrix), nullptr,
+ kPropertyIsNotAnimVal, QualifiedName::Null());
+}
+
SVGTransformTearOff* SVGTransformTearOff::Create(SVGMatrixTearOff* matrix) {
return Create(SVGTransform::Create(matrix->Value()), nullptr,
- kPropertyIsNotAnimVal);
+ kPropertyIsNotAnimVal, QualifiedName::Null());
}
SVGMatrixTearOff* SVGTransformTearOff::matrix() {

Powered by Google App Engine
This is Rietveld 408576698