| Index: ui/base/cocoa/base_view.mm
|
| diff --git a/ui/base/cocoa/base_view.mm b/ui/base/cocoa/base_view.mm
|
| index 0d63acf69ea4eba62f5bc807baa7e0caeaac57e2..d5f89e89aadf8570a0872d8c3ae80d11a3d447a7 100644
|
| --- a/ui/base/cocoa/base_view.mm
|
| +++ b/ui/base/cocoa/base_view.mm
|
| @@ -133,14 +133,13 @@ NSString* kSelectionDirection = @"Chromium.kSelectionDirection";
|
|
|
| - (gfx::Rect)flipNSRectToRect:(NSRect)rect {
|
| gfx::Rect new_rect(NSRectToCGRect(rect));
|
| - new_rect.set_y([self bounds].size.height - new_rect.y() - new_rect.height());
|
| + new_rect.set_y(NSHeight([self bounds]) - new_rect.bottom());
|
| return new_rect;
|
| }
|
|
|
| - (NSRect)flipRectToNSRect:(gfx::Rect)rect {
|
| NSRect new_rect(NSRectFromCGRect(rect.ToCGRect()));
|
| - new_rect.origin.y =
|
| - [self bounds].size.height - new_rect.origin.y - new_rect.size.height;
|
| + new_rect.origin.y = NSHeight([self bounds]) - NSMaxY(new_rect);
|
| return new_rect;
|
| }
|
|
|
|
|