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

Unified Diff: third_party/WebKit/Source/core/svg/SVGNumberTearOff.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/SVGNumberTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp
index e05c20a36beaa65840ba962fa2df31b8cf893b4c..c274ff7ea7ea870fc8e857d43130df60e725e61c 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp
@@ -52,6 +52,11 @@ void SVGNumberTearOff::setValue(float f, ExceptionState& exception_state) {
CommitChange();
}
+SVGNumberTearOff* SVGNumberTearOff::CreateDetached() {
+ return Create(SVGNumber::Create(), nullptr, kPropertyIsNotAnimVal,
+ QualifiedName::Null());
+}
+
DEFINE_TRACE_WRAPPERS(SVGNumberTearOff) {
visitor->TraceWrappers(contextElement());
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumberTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698