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

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

Issue 10825070: Fix the candidate window position of IME in Retina display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index cb3ecf5cb2e6e14f873954cf6c5ea4f0da88b82e..eae7ba2a4a70dc346e931069705d597c45492e81 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2812,9 +2812,8 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
// 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