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

Unified Diff: webkit/glue/webview_impl.cc

Issue 21338: Fix for Issue 7651 Regression: The position of input method window is not cor... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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: webkit/glue/webview_impl.cc
===================================================================
--- webkit/glue/webview_impl.cc (revision 9719)
+++ webkit/glue/webview_impl.cc (working copy)
@@ -1183,7 +1183,10 @@
return false;
*enable_ime = node->shouldUseInputMethod() &&
!controller->isInPasswordField();
- const IntRect rect(controller->absoluteCaretBounds());
+ const FrameView* view = node->document()->view();
+ if (!view)
+ return false;
+ const IntRect rect(view->contentsToWindow(controller->absoluteCaretBounds()));
caret_rect->SetRect(rect.x(), rect.y(), rect.width(), rect.height());
return true;
}
« 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