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 d8db81ab55c8b05305b4e828bd53face919a58fb..0f6500a6e96e622f84f911f96636ddb30f3028c2 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGPath.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGPath.cpp |
@@ -22,7 +22,6 @@ |
#include "core/svg/SVGPath.h" |
-#include "bindings/core/v8/ExceptionState.h" |
#include "core/SVGNames.h" |
#include "core/svg/SVGAnimationElement.h" |
#include "core/svg/SVGPathBlender.h" |
@@ -94,13 +93,14 @@ PassRefPtrWillBeRawPtr<SVGPath> SVGPath::clone() const |
return SVGPath::create(m_pathValue); |
} |
- |
-void SVGPath::setValueAsString(const String& string, ExceptionState& exceptionState) |
+SVGParsingError SVGPath::setValueAsString(const String& string) |
{ |
+ SVGParsingError parseStatus = NoError; |
OwnPtr<SVGPathByteStream> byteStream = SVGPathByteStream::create(); |
if (!buildByteStreamFromString(string, *byteStream)) |
- exceptionState.throwDOMException(SyntaxError, "Problem parsing path \"" + string + "\""); |
+ parseStatus = ParsingAttributeFailedError; |
m_pathValue = CSSPathValue::create(byteStream.release()); |
+ return parseStatus; |
} |
PassRefPtrWillBeRawPtr<SVGPropertyBase> SVGPath::cloneForAnimation(const String& value) const |