Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: Source/core/frame/FrameView.cpp

Issue 813133004: [svg] Reset the initial view properly in SVGImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tweak test to avoid bug 444553 (separate issue) Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698