Replace default page scale limits in PageScaleConstraintsSet.
This fixes crbug.com/411933 where overlay scrollbars in ChromeOS would show up on the new tab page even though they weren't needed. This was occurring because the page scale factor limits, though set in RenderViewImpl::Initialize, were ineffective until a layout occured since Blink's PageScaleConstraintsSet wouldn't have computed the final constraints. Thus, the limits used were Blink's default limits, set to hardcoded values in PageScaleConstraintsSet. This caused the scrollbar in the compositor to think the page was zoomed in and displayed the scrollbars. This patch replaces the uncomputed final constraints with "all 1" values for minimum, maximum and initial scale, rather than using the (Android-specific) defaults. BUG=411933 Review URL: https://codereview.chromium.org/567663002 git-svn-id: svn://svn.chromium.org/blink/trunk@181848 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment