Commit 29ad68e4 authored by mazda@chromium.org's avatar mazda@chromium.org

Fix DCHECK error when using multi window resizer on the 2nd display that is place on the left side.

The cause of the error was work_area in screen coordinates was passed to CalculateAttachedSizes while bounds is in |window()->parent()|'s coordinates.

BUG=139231
TEST=Set the 2nd display on left, open two windows and use multi window resizer on debug build, and check crash does not occur.

Review URL: https://chromiumcodereview.appspot.com/10836157

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150911 0039d316-1c4b-4281-b951-d872f2087c98
parent 7a42209c
......@@ -286,8 +286,7 @@ gfx::Rect WorkspaceWindowResizer::GetFinalBounds(
void WorkspaceWindowResizer::LayoutAttachedWindows(
const gfx::Rect& bounds,
int grid_size) {
gfx::Rect work_area(
gfx::Screen::GetDisplayNearestWindow(window()).work_area());
gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window()));
std::vector<int> sizes;
CalculateAttachedSizes(
PrimaryAxisSize(details_.initial_bounds.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