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

Unified Diff: third_party/WebKit/Source/core/svg/SVGRectTearOff.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/SVGRectTearOff.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp b/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp
index 29d6e692a6a6c45c5f44428bcce544d732c0b3a3..14820d6d5ef5e539246914b4cfcb79433e96bf1a 100644
--- a/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGRectTearOff.cpp
@@ -79,6 +79,11 @@ void SVGRectTearOff::setHeight(float f, ExceptionState& exception_state) {
CommitChange();
}
+SVGRectTearOff* SVGRectTearOff::CreateDetached(const FloatRect& rect) {
+ return Create(SVGRect::Create(rect), nullptr, kPropertyIsNotAnimVal,
+ QualifiedName::Null());
+}
+
DEFINE_TRACE_WRAPPERS(SVGRectTearOff) {
visitor->TraceWrappers(contextElement());
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGRectTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698