| Index: chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| index a2309a2364f1bda40b29800420a52cfa44ba147c..f7164c7da358d59464a83327398026dde91006bc 100644
|
| --- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| +++ b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
|
| @@ -25,8 +25,7 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
|
|
|
| // When not in compact mode we must take into account the window's position on
|
| // the desktop.
|
| - read_pixels_bounds.set_origin(
|
| - snapshot_bounds.origin().Add(window->bounds().origin()));
|
| + read_pixels_bounds.Offset(window->bounds().OffsetFromOrigin());
|
| gfx::Rect read_pixels_bounds_in_pixel =
|
| ui::ConvertRectToPixel(window->layer(), read_pixels_bounds);
|
|
|
|
|