Index: third_party/WebKit/Source/core/svg/SVGRect.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGRect.cpp b/third_party/WebKit/Source/core/svg/SVGRect.cpp |
index 37149e65f89e358ea3ff12f8e844236cefdcdc8a..aea18f0ab95ee8e00577fde90cfb05132aa6578d 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGRect.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGRect.cpp |
@@ -75,11 +75,8 @@ SVGParsingError SVGRect::setValueAsString(const String& string) |
if (string.isNull()) |
return SVGParseStatus::NoError; |
- if (string.isEmpty()) { |
- m_value = FloatRect(0.0f, 0.0f, 0.0f, 0.0f); |
- m_isValid = true; |
- return SVGParseStatus::NoError; |
- } |
+ if (string.isEmpty()) |
+ return SVGParsingError(SVGParseStatus::ExpectedNumber, 0); |
if (string.is8Bit()) { |
const LChar* ptr = string.characters8(); |