Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index cbc6967aea0ffae5610e184f3e6d529c36595f90..15f01f0de6b2a1ae345e7376fe34c0543a946ec3 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -341,7 +341,7 @@ public: |
if (!frame()->document() || !frame()->view() || !frame()->document()->renderView()) |
return; |
- frame()->document()->updateLayout(); |
+ frame()->view()->updateLayoutAndStyleForPainting(); |
float pageHeight; |
computePageRects(FloatRect(FloatPoint(0, 0), pageSizeInPixels), 0, 0, 1, pageHeight); |