| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 3685c4b4286efac4d1d7c3b34aae18da0824e2b0..35acca7449c0db5444e80150272ce6fe129520a3 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3397,11 +3397,12 @@ IntSize WebViewImpl::contentsSize() const
|
|
|
| WebSize WebViewImpl::contentsPreferredMinimumSize()
|
| {
|
| + layout();
|
| +
|
| Document* document = m_page->mainFrame()->isLocalFrame() ? m_page->deprecatedLocalMainFrame()->document() : 0;
|
| if (!document || !document->layoutView() || !document->documentElement() || !document->documentElement()->layoutBox())
|
| return WebSize();
|
|
|
| - layout();
|
| int widthScaled = document->layoutView()->minPreferredLogicalWidth().round(); // Already accounts for zoom.
|
| int heightScaled = document->documentElement()->layoutBox()->scrollHeight().round();
|
| return IntSize(widthScaled, heightScaled);
|
|
|