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

Unified Diff: Source/core/svg/graphics/SVGImage.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
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/graphics/SVGImage.cpp
diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp
index dbbde30203e75fc51893e8ca4b6b3b8cd8486f6d..4db4b04f5c870979ac2164b98c7651c7401e5fd3 100644
--- a/Source/core/svg/graphics/SVGImage.cpp
+++ b/Source/core/svg/graphics/SVGImage.cpp
@@ -286,8 +286,7 @@ void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const Fl
FrameView* view = frameView();
view->resize(containerSize());
- if (!m_url.isEmpty())
- view->scrollToFragment(m_url);
+ view->scrollToFragment(m_url);
fs 2015/01/26 12:06:30 Maybe add a short note here as to why this is alwa
view->updateLayoutAndStyleForPainting();
view->paint(context, enclosingIntRect(srcRect));
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698