Index: third_party/WebKit/Source/core/svg/SVGViewSpec.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGViewSpec.h b/third_party/WebKit/Source/core/svg/SVGViewSpec.h |
index 3d7ea0384d9da25c484baab9372a34e9b057cf17..ac8fe5c3722b0006c1c7a3d2c9d28f6d946d1434 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGViewSpec.h |
+++ b/third_party/WebKit/Source/core/svg/SVGViewSpec.h |
@@ -65,7 +65,7 @@ class SVGViewSpec final : public GarbageCollectedFinalized<SVGViewSpec>, |
template <typename T> |
void SVGViewSpec::inheritViewAttributesFromElement(T& inheritFromElement) { |
- if (!inheritFromElement.hasEmptyViewBox()) |
+ if (inheritFromElement.viewBox()->currentValue()->isValid()) |
setViewBox(inheritFromElement.viewBox()->currentValue()->value()); |
if (inheritFromElement.preserveAspectRatio()->isSpecified()) { |