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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAngleTearOff.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/SVGAngleTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp
index f7784a156778331fb77eb7e219eb0c743d1b6489..928139de9114ce6c61c1f05dabb32907c06e1041 100644
--- a/third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp
@@ -129,6 +129,11 @@ void SVGAngleTearOff::setValueAsString(const String& value,
CommitChange();
}
+SVGAngleTearOff* SVGAngleTearOff::CreateDetached() {
+ return Create(SVGAngle::Create(), nullptr, kPropertyIsNotAnimVal,
+ QualifiedName::Null());
+}
+
DEFINE_TRACE_WRAPPERS(SVGAngleTearOff) {
visitor->TraceWrappers(contextElement());
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAngleTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698