Index: ash/wm/partial_screenshot_view.cc |
diff --git a/ash/wm/partial_screenshot_view.cc b/ash/wm/partial_screenshot_view.cc |
index dd0bd1da0ac94148cada909d418ff7ac6b6692d5..9596d4a5e5348f2b94e2f04d4f6a8bf39a57ed27 100644 |
--- a/ash/wm/partial_screenshot_view.cc |
+++ b/ash/wm/partial_screenshot_view.cc |
@@ -121,10 +121,9 @@ void PartialScreenshotView::OnMouseReleased(const ui::MouseEvent& event) { |
is_dragging_ = false; |
if (screenshot_delegate_) { |
aura::RootWindow *root_window = Shell::GetPrimaryRootWindow(); |
- gfx::Rect root_window_screenshot_rect = root_window->bounds(); |
- root_window_screenshot_rect.Intersect(GetScreenshotRect()); |
screenshot_delegate_->HandleTakePartialScreenshot( |
- root_window, root_window_screenshot_rect); |
+ root_window, |
+ gfx::Intersection(root_window->bounds(), GetScreenshotRect())); |
} |
} |