Chromium Code Reviews| 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 |