Commit 5ff10302 authored by jbroman's avatar jbroman Committed by Commit bot

Do not discard screen info in RenderViewImpl::OnDisableAutoResize.

This caused fast/autoresize/turn-off-autoresize.html to change the screen size
to 0x0, which persisted to later tests. When a subsequent test attempted to
resize the window, it was clamped to the 0x0 screen size, causing (flaky)
failures.

Review-Url: https://codereview.chromium.org/2172083002
Cr-Commit-Position: refs/heads/master@{#407031}
parent 1efd0ad3
...@@ -2436,6 +2436,7 @@ void RenderViewImpl::OnDisableAutoResize(const gfx::Size& new_size) { ...@@ -2436,6 +2436,7 @@ void RenderViewImpl::OnDisableAutoResize(const gfx::Size& new_size) {
if (!new_size.IsEmpty()) { if (!new_size.IsEmpty()) {
ResizeParams resize_params; ResizeParams resize_params;
resize_params.screen_info = screen_info_;
resize_params.new_size = new_size; resize_params.new_size = new_size;
resize_params.physical_backing_size = physical_backing_size_; resize_params.physical_backing_size = physical_backing_size_;
resize_params.top_controls_shrink_blink_size = resize_params.top_controls_shrink_blink_size =
......
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