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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthTearOff.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/SVGLengthTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp
index 2a29c263e215892c5538e0e61a955c9825476743..9145a353e798c42c2625fc38ea29165005bf4d7f 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp
@@ -244,6 +244,11 @@ SVGLengthTearOff::SVGLengthTearOff(SVGLength* target,
property_is_anim_val,
attribute_name) {}
+SVGLengthTearOff* SVGLengthTearOff::CreateDetached() {
+ return Create(SVGLength::Create(), nullptr, kPropertyIsNotAnimVal,
+ QualifiedName::Null());
+}
+
DEFINE_TRACE_WRAPPERS(SVGLengthTearOff) {
visitor->TraceWrappers(contextElement());
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGNumberListTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698