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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPath.cpp

Issue 1469323002: SVGPathUtilities tidying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: third_party/WebKit/Source/core/svg/SVGPath.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPath.cpp b/third_party/WebKit/Source/core/svg/SVGPath.cpp
index 6fbd605fc6b742d99994818ab2b8909643131fae..fb9eebe68dc67de4519482b7fa5039c51d2e854a 100644
--- a/third_party/WebKit/Source/core/svg/SVGPath.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPath.cpp
@@ -122,14 +122,12 @@ const SVGPathByteStream& SVGPath::byteStream() const
String SVGPath::valueAsString() const
{
- String string;
- buildStringFromByteStream(byteStream(), string, UnalteredParsing);
- return string;
+ return buildStringFromByteStream(byteStream(), UnalteredParsing);
}
void SVGPath::setValueAsString(const String& string, ExceptionState& exceptionState)
{
- if (!buildSVGPathByteStreamFromString(string, ensureByteStream(), UnalteredParsing))
+ if (!buildByteStreamFromString(string, ensureByteStream()))
exceptionState.throwDOMException(SyntaxError, "Problem parsing path \"" + string + "\"");
byteStreamChanged();
}

Powered by Google App Engine
This is Rietveld 408576698