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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 10827110: Merge 148916 - Fix the candidate window position of IME in Retina display. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
===================================================================
--- content/browser/renderer_host/render_widget_host_view_mac.mm (revision 149353)
+++ content/browser/renderer_host/render_widget_host_view_mac.mm (working copy)
@@ -2685,9 +2685,8 @@
// flip the coordinate system and then convert it into screen coordinates for
// return.
NSRect viewFrame = [self frame];
- rect.origin.y = NSHeight(viewFrame) - rect.origin.y;
- rect.origin.y -= rect.size.height;
- rect = [self convertRectToBase:rect];
+ rect.origin.y = NSHeight(viewFrame) - NSMaxY(rect);
+ rect = [self convertRect:rect toView:nil];
rect.origin = [[self window] convertBaseToScreen:rect.origin];
return rect;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698