| Index: ui/events/cocoa/events_mac.mm
|
| diff --git a/ui/events/cocoa/events_mac.mm b/ui/events/cocoa/events_mac.mm
|
| index a8d93650b3610e402a5b7915be43d3bdec0035a8..34573d50816ac90c06f54aaaffb33a59934f7549 100644
|
| --- a/ui/events/cocoa/events_mac.mm
|
| +++ b/ui/events/cocoa/events_mac.mm
|
| @@ -92,8 +92,10 @@ gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
|
| return gfx::Point();
|
| }
|
| NSPoint location = [native_event locationInWindow];
|
| - return gfx::Point(location.x,
|
| - NSHeight([[native_event window] frame]) - location.y);
|
| + NSRect window_frame = [[native_event window] frame];
|
| + CGFloat content_height =
|
| + NSHeight([[native_event window] contentRectForFrameRect:window_frame]);
|
| + return gfx::Point(location.x, content_height - location.y);
|
| }
|
|
|
| gfx::Point EventSystemLocationFromNative(
|
|
|