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(); |
} |