Chrome/Mac layout error on Google Docs Demo page (https://docs.google.com/demo)

Avoid collapsing the preferred size reported by RenderView when WebKit
is unable to calculate scrollable height.

BUG=103423
TEST=http://docs.google.com/demo 'Sign In' and 'Get Started' shouldn't wrap.

Review URL: http://codereview.chromium.org/8670014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112959 0039d316-1c4b-4281-b951-d872f2087c98
parent 3089f8ab
...@@ -2937,6 +2937,9 @@ void RenderViewImpl::CheckPreferredSize() { ...@@ -2937,6 +2937,9 @@ void RenderViewImpl::CheckPreferredSize() {
size.set_width(static_cast<int>(size.width() * zoom_factor)); size.set_width(static_cast<int>(size.width() * zoom_factor));
size.set_height(static_cast<int>(size.height() * zoom_factor)); size.set_height(static_cast<int>(size.height() * zoom_factor));
if (!size.height())
size.set_height(preferred_size_.height());
if (size == preferred_size_) if (size == preferred_size_)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment