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

Unified Diff: Source/WebCore/page/win/FrameCGWin.cpp

Issue 10763005: Merge 121388 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 5 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/WebCore/page/mac/FrameMac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/page/win/FrameCGWin.cpp
===================================================================
--- Source/WebCore/page/win/FrameCGWin.cpp (revision 122138)
+++ Source/WebCore/page/win/FrameCGWin.cpp (working copy)
@@ -93,6 +93,8 @@
DragImageRef Frame::nodeImage(Node* node)
{
+ document()->updateLayout();
+
RenderObject* renderer = node->renderer();
if (!renderer)
return 0;
@@ -100,8 +102,6 @@
LayoutRect topLevelRect;
IntRect paintingRect = pixelSnappedIntRect(renderer->paintingRootRect(topLevelRect));
- document()->updateLayout();
-
m_view->setNodeToDraw(node); // invoke special sub-tree drawing mode
HBITMAP result = imageFromRect(this, paintingRect);
m_view->setNodeToDraw(0);
« no previous file with comments | « Source/WebCore/page/mac/FrameMac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698