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

Unified Diff: Source/core/svg/graphics/SVGImage.cpp

Issue 457973003: We should call FrameView::updateLayoutAndStyleForPainting before painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Needs rebaseline Created 6 years, 4 months 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/frame/LocalFrame.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | 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 fdf5bc94a3a054c18b54701c0b4cfbba73a3e76a..619a51f8cbec5cedfd0b355292fbf86bd031defa 100644
--- a/Source/core/svg/graphics/SVGImage.cpp
+++ b/Source/core/svg/graphics/SVGImage.cpp
@@ -287,9 +287,7 @@ void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const Fl
if (!m_url.isEmpty())
view->scrollToFragment(m_url);
- if (view->needsLayout())
- view->layout();
-
+ view->updateLayoutAndStyleForPainting();
view->paint(context, enclosingIntRect(srcRect));
ASSERT(!view->needsLayout());
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698