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

Unified Diff: Source/core/dom/Element.cpp

Issue 408883003: Remove shouldUseInputMethod (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 02cc1eeb642396e3c642d3dca102972a857b3fdf..d01cbcf3d7bebafb197a9fa1feb2ab5d838433f4 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -89,6 +89,7 @@
#include "core/html/HTMLFormControlsCollection.h"
#include "core/html/HTMLFrameElementBase.h"
#include "core/html/HTMLFrameOwnerElement.h"
+#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLLabelElement.h"
#include "core/html/HTMLOptionsCollection.h"
#include "core/html/HTMLTableRowsCollection.h"
@@ -220,6 +221,11 @@ short Element::tabIndex() const
return hasRareData() ? elementRareData()->tabIndex() : 0;
}
+bool Element::shouldUseInputMethod()
+{
+ return isHTMLInputElement(this) ? toHTMLInputElement(this)->shouldUseInputMethod() : isContentEditable(UserSelectAllIsAlwaysNonEditable);
adamk 2014/07/21 22:06:32 Is isHTMLInputElement(this) ever true? The only ca
+}
+
bool Element::rendererIsFocusable() const
{
// Elements in canvas fallback content are not rendered, but they are allowed to be

Powered by Google App Engine
This is Rietveld 408576698