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

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

Issue 1544673003: Refactor propagation of parsing errors for SVG attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/SVGStaticStringList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGStaticStringList.cpp b/third_party/WebKit/Source/core/svg/SVGStaticStringList.cpp
index 58531627c39a861a4d528d8dcea77fe5f122cc49..09e6b380e5f8532d987c0040a4af554113c22963 100644
--- a/third_party/WebKit/Source/core/svg/SVGStaticStringList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGStaticStringList.cpp
@@ -97,14 +97,9 @@ SVGStringListTearOff* SVGStaticStringList::tearOff()
return m_tearOff.get();
}
-void SVGStaticStringList::setBaseValueAsString(const String& value, SVGParsingError& parseError)
+SVGParsingError SVGStaticStringList::setBaseValueAsString(const String& value)
{
- TrackExceptionState es;
-
- m_value->setValueAsString(value, es);
-
- if (es.hadException())
- parseError = ParsingAttributeFailedError;
+ return m_value->setValueAsString(value);
}
}

Powered by Google App Engine
This is Rietveld 408576698