Chromium Code Reviews| Index: ui/snapshot/snapshot_mac.mm |
| diff --git a/ui/snapshot/snapshot_mac.mm b/ui/snapshot/snapshot_mac.mm |
| index d1eb698b6932f8203d4222b8dbcd4ccd7be241e8..c12ad13e00e5db634041749372b073a5b0e48a4a 100644 |
| --- a/ui/snapshot/snapshot_mac.mm |
| +++ b/ui/snapshot/snapshot_mac.mm |
| @@ -26,7 +26,7 @@ bool GrabViewSnapshot(gfx::NativeView view, |
| // Get the view bounds relative to the screen |
| NSRect frame = [view convertRect:[view bounds] toView:nil]; |
| - frame.origin = [window convertBaseToScreen:frame.origin]; |
| + frame.origin = [window convertRectToScreen:frame].origin; |
|
Avi (use Gerrit)
2016/03/08 20:07:54
Just do
frame = [window convertRectToScreen:frame
erikchen
2016/03/08 20:57:41
Done.
|
| gfx::Rect view_bounds = gfx::Rect(NSRectToCGRect(frame)); |