Index: ash/wm/workspace/workspace_window_resizer.cc |
diff --git a/ash/wm/workspace/workspace_window_resizer.cc b/ash/wm/workspace/workspace_window_resizer.cc |
index 4a7e9cc29c9e1d9a7457f8aa40e48e125c5ee3a6..67145f5db38384e0c769d536bc5a31f3e1a2abbb 100644 |
--- a/ash/wm/workspace/workspace_window_resizer.cc |
+++ b/ash/wm/workspace/workspace_window_resizer.cc |
@@ -707,8 +707,8 @@ void WorkspaceWindowResizer::UpdateDragPhantomWindow(const gfx::Rect& bounds, |
const gfx::Rect root_bounds_in_screen(another_root->GetBoundsInScreen()); |
const gfx::Rect bounds_in_screen = |
ScreenAsh::ConvertRectToScreen(window()->parent(), bounds); |
- gfx::Rect bounds_in_another_root = root_bounds_in_screen; |
- bounds_in_another_root.Intersect(bounds_in_screen); |
+ gfx::Rect bounds_in_another_root = |
+ gfx::IntersectRects(root_bounds_in_screen, bounds_in_screen); |
const float fraction_in_another_window = |
(bounds_in_another_root.width() * bounds_in_another_root.height()) / |