Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: ui/snapshot/snapshot_mac.mm

Issue 1777653002: Prepare ui/ module for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698