Index: ash/wm/partial_screenshot_view.cc |
diff --git a/ash/wm/partial_screenshot_view.cc b/ash/wm/partial_screenshot_view.cc |
index 2c3e09dcb906a0ec0c920f0cd9ae0c9630065f50..dd0bd1da0ac94148cada909d418ff7ac6b6692d5 100644 |
--- a/ash/wm/partial_screenshot_view.cc |
+++ b/ash/wm/partial_screenshot_view.cc |
@@ -121,8 +121,10 @@ 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->bounds().Intersect(GetScreenshotRect())); |
+ root_window, root_window_screenshot_rect); |
} |
} |