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

Unified Diff: content/renderer/render_widget.cc

Issue 11419218: Use textInputInfo instead of textInputType in getTextInputType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index b09cc01adae39af445dc9620bf65e76b9fcce054..e05a2758fd4584f7011bbf1624105f6a9e3002a6 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1833,10 +1833,8 @@ ui::TextInputType RenderWidget::WebKitToUiTextInputType(
}
ui::TextInputType RenderWidget::GetTextInputType() {
- if (webwidget_) {
- WebKit::WebTextInputType type = webwidget_->textInputType();
- return WebKitToUiTextInputType(type);
- }
+ if (webwidget_)
+ return WebKitToUiTextInputType(webwidget_->textInputInfo().type);
return ui::TEXT_INPUT_TYPE_NONE;
}
« 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