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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2592953003: Revert of [refactor] - Move textInputInfo() and textInputType() from WebWidget to WebInputMethodController (Closed)
Patch Set: Created 4 years 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 | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index dd57a8dcbfe1a6b7b3f63374d1f2872ae0466e23..d894c0b0a97a6c4dc4c25eab7edc3c9ec606b869 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1870,10 +1870,7 @@
// TODO(estade): hit test the event against focused node to make sure
// the tap actually hit the focused node.
- blink::WebLocalFrame* focused = GetWebView()->focusedFrame();
- blink::WebTextInputType text_input_type =
- focused ? focused->inputMethodController()->textInputType()
- : blink::WebTextInputTypeNone;
+ blink::WebTextInputType text_input_type = GetWebView()->textInputType();
Send(new ViewHostMsg_FocusedNodeTouched(
GetRoutingID(), text_input_type != blink::WebTextInputTypeNone));
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698