| Index: Source/core/svg/SVGSVGElement.cpp | 
| diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp | 
| index 5be8b3959de2f1e5ecbdefa92f1332f58b58d4c8..b5065d4515e00e282c525ac9ab7a194550d63237 100644 | 
| --- a/Source/core/svg/SVGSVGElement.cpp | 
| +++ b/Source/core/svg/SVGSVGElement.cpp | 
| @@ -776,13 +776,11 @@ void SVGSVGElement::setupInitialView(const String& fragmentIdentifier, Element* | 
| // or MyDrawing.svg#xpointer(id('MyView'))) then the closest ancestor ‘svg’ element is displayed in the viewport. | 
| // Any view specification attributes included on the given ‘view’ element override the corresponding view specification | 
| // attributes on the closest ancestor ‘svg’ element. | 
| -    if (anchorNode && anchorNode->hasTagName(SVGNames::viewTag)) { | 
| -        SVGViewElement* viewElement = toSVGViewElement(anchorNode); | 
| -        if (!viewElement) | 
| -            return; | 
| +    if (isSVGViewElement(anchorNode)) { | 
| +        SVGViewElement& viewElement = toSVGViewElement(*anchorNode); | 
|  | 
| -        if (SVGSVGElement* svg = viewElement->ownerSVGElement()) { | 
| -            svg->inheritViewAttributes(viewElement); | 
| +        if (SVGSVGElement* svg = viewElement.ownerSVGElement()) { | 
| +            svg->inheritViewAttributes(&viewElement); | 
|  | 
| if (RenderObject* renderer = svg->renderer()) | 
| RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); | 
|  |