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

Unified Diff: Source/core/svg/SVGPoint.cpp

Issue 302643004: [SVG2] Allow leading and trailing whitespace in svg attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@relax_todouble_wtf
Patch Set: review fixes Created 6 years, 7 months 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: Source/core/svg/SVGPoint.cpp
diff --git a/Source/core/svg/SVGPoint.cpp b/Source/core/svg/SVGPoint.cpp
index b2581b824ea8771d7270ecab8c5132e2ce05aa5e..0951cb2f4393db68360a98c3107bb4e0e753899f 100644
--- a/Source/core/svg/SVGPoint.cpp
+++ b/Source/core/svg/SVGPoint.cpp
@@ -74,7 +74,7 @@ void SVGPoint::parse(const CharType*& ptr, const CharType* end, ExceptionState&
float x = 0.0f;
float y = 0.0f;
- bool valid = parseNumber(ptr, end, x) && parseNumber(ptr, end, y, false);
+ bool valid = parseNumber(ptr, end, x) && parseNumber(ptr, end, y, STRICT);
if (!valid) {
exceptionState.throwDOMException(SyntaxError, "Problem parsing point \"" + String(start, end - start) + "\"");

Powered by Google App Engine
This is Rietveld 408576698