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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp

Issue 1476283002: Drop PathParsingMode argument to buildStringFromByteStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove include; Drop forward decl. Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
index c318662ea35504c54352da3886dd60e82ad5af88..56cbe4d31fe7a5a6aa81c3be459b8bbd94fbdeab 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp
@@ -56,7 +56,6 @@
#include "core/svg/SVGLineElement.h"
#include "core/svg/SVGLinearGradientElement.h"
#include "core/svg/SVGPathElement.h"
-#include "core/svg/SVGPathUtilities.h"
#include "core/svg/SVGPatternElement.h"
#include "core/svg/SVGPointList.h"
#include "core/svg/SVGPolyElement.h"
@@ -366,8 +365,7 @@ static TextStream& operator<<(TextStream& ts, const LayoutSVGShape& shape)
} else if (isSVGPolyElement(*svgElement)) {
writeNameAndQuotedValue(ts, "points", toSVGPolyElement(*svgElement).points()->currentValue()->valueAsString());
} else if (isSVGPathElement(*svgElement)) {
- String pathString = buildStringFromByteStream(toSVGPathElement(*svgElement).pathByteStream(), UnalteredParsing);
- writeNameAndQuotedValue(ts, "data", pathString);
+ writeNameAndQuotedValue(ts, "data", toSVGPathElement(*svgElement).path()->currentValue()->valueAsString());
} else {
ASSERT_NOT_REACHED();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698