Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 7a0ece3d6d78e04468e4e4c8f0377f5de92733f8..3e85e1b4bccca93cbee6e6de9ddf2fcad6af2cb0 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -1414,7 +1414,9 @@ bool FrameView::scrollToFragment(const KURL& url) |
// OTOH If CSS target was set previously, we want to set it to 0, recalc |
// and possibly paint invalidation because :target pseudo class may have been |
// set (see bug 11321). |
- if (!url.hasFragmentIdentifier() && !m_frame->document()->cssTarget()) |
+ // Similarly for svg, if we had a previous svgView() then we need to reset |
+ // the initial view if we don't have a fragment. |
+ if (!url.hasFragmentIdentifier() && !m_frame->document()->cssTarget() && !m_frame->document()->isSVGDocument()) |
return false; |
String fragmentIdentifier = url.fragmentIdentifier(); |