Fix an ASSERT when using Find in Page
[WebKit-https.git] / WebCore / bridge / win / FrameWin.cpp
index ae6312c3e9760650ec2765e13f91166079f4d957..4b6b466198cfdaa67ac99fed5221b2231d911ce4 100644 (file)
@@ -169,6 +169,7 @@ HBITMAP imageFromSelection(Frame* frame, bool forceBlackText)
 
     GraphicsContext gc(context);
 
+    frame->document()->updateLayout();
     drawRectIntoContext(ir, frame->view(), &gc);
 
     CGContextRelease(context);