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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathElement.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/SVGPathElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
index 113b027f7eead20dab0cde9365af799faf63b7d8..1ed87f83ed18bc54f6ac97098de3173802ced650 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
@@ -72,8 +72,7 @@ float SVGPathElement::getTotalLength() {
SVGPointTearOff* SVGPathElement::getPointAtLength(float length) {
GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets();
FloatPoint point = SVGPathQuery(PathByteStream()).GetPointAtLength(length);
- return SVGPointTearOff::Create(SVGPoint::Create(point), 0,
- kPropertyIsNotAnimVal);
+ return SVGPointTearOff::CreateDetached(point);
}
unsigned SVGPathElement::getPathSegAtLength(float length) {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPointListTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698