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

Unified Diff: third_party/WebKit/Source/core/svg/SVGGraphicsElement.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/SVGGraphicsElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp b/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp
index d8cb10c70448ea5ceeeb1b980691d543cfa809eb..02665ba9b5c30ebe69eebcc9bc97e558b8c4462c 100644
--- a/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp
@@ -173,8 +173,7 @@ SVGRectTearOff* SVGGraphicsElement::getBBoxFromJavascript() {
FloatRect boundingBox;
if (GetLayoutObject())
boundingBox = GetBBox();
- return SVGRectTearOff::Create(SVGRect::Create(boundingBox), 0,
- kPropertyIsNotAnimVal);
+ return SVGRectTearOff::CreateDetached(boundingBox);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698