Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index 84e6651f2d9c189e353bcc87447d0bc278114e27..1ae88bd0059d27ef4936b6811104596df35ec2de 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -712,9 +712,16 @@ void SVGSVGElement::setupInitialView(const String& fragmentIdentifier, Element* |
if (RenderObject* renderer = svg->renderer()) |
markForLayoutAndParentResourceInvalidation(renderer); |
+ |
+ return; |
} |
} |
+ // If we previously had a view and didn't get a new one, we need to |
+ // layout again. |
+ if (renderer && hadUseCurrentView) |
+ markForLayoutAndParentResourceInvalidation(renderer); |
+ |
// FIXME: We need to decide which <svg> to focus on, and zoom to it. |
// FIXME: We need to actually "highlight" the viewTarget(s). |
} |