Index: third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
index 5bef19eccb81e09dd67be87104abf3417fd24626..cf7628a84843a237f1b5a769c0b939b40d030775 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp |
@@ -49,6 +49,12 @@ protected: |
SVGParsingError SVGAnimatedViewBoxRect::setBaseValueAsString(const String& value) |
{ |
+ // Empty string should be treated as invalid viewBox |
+ if (value.isEmpty()) { |
fs
2016/06/03 08:58:03
Should probably fix this down in SVGRect instead.
Shanmuga Pandi
2016/06/03 10:20:53
Done.
|
+ baseValue()->setInvalid(); |
+ return SVGParseStatus::NoError; |
+ } |
+ |
SVGParsingError parseStatus = SVGAnimatedRect::setBaseValueAsString(value); |
if (parseStatus == SVGParseStatus::NoError && (baseValue()->width() < 0 || baseValue()->height() < 0)) { |