| Index: third_party/WebKit/Source/core/svg/SVGPatternElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPatternElement.cpp b/third_party/WebKit/Source/core/svg/SVGPatternElement.cpp
|
| index c95abef1808ca0b4bdc542036e951430663343ea..087de52c808cfabb39218658c1ba1f042deb6571 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPatternElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPatternElement.cpp
|
| @@ -162,8 +162,7 @@ static void setPatternAttributes(const SVGPatternElement* element,
|
| if (!attributes.hasHeight() && element->height()->isSpecified())
|
| attributes.setHeight(element->height()->currentValue());
|
|
|
| - if (!attributes.hasViewBox() && element->viewBox()->isSpecified() &&
|
| - element->viewBox()->currentValue()->isValid())
|
| + if (!attributes.hasViewBox() && element->hasValidViewBox())
|
| attributes.setViewBox(element->viewBox()->currentValue()->value());
|
|
|
| if (!attributes.hasPreserveAspectRatio() &&
|
|
|