| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index f93bb2df4bc70da71d10bbdfd2806fc381f83770..34842696ed23487ca4fb3a68b6732b3f98cf70dd 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3379,7 +3379,7 @@ WebSize WebViewImpl::contentsPreferredMinimumSize()
|
|
|
| layout();
|
| int widthScaled = document->layoutView()->minPreferredLogicalWidth().round(); // Already accounts for zoom.
|
| - int heightScaled = static_cast<int>(document->documentElement()->scrollHeight() * zoomLevelToZoomFactor(zoomLevel()));
|
| + int heightScaled = static_cast<int>((document->documentElement()->scrollHeight() * zoomLevelToZoomFactor(zoomLevel())) + 0.5); // +0.5 to round rather than truncating
|
| return IntSize(widthScaled, heightScaled);
|
| }
|
|
|
|
|