Chromium Code Reviews| Index: sky/engine/core/dom/Element.cpp |
| diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp |
| index c82a7d9192882732d05af4943a0aedf5ecd82eff..82b0688455efd527eb1dc8a1235acbc7947729ff 100644 |
| --- a/sky/engine/core/dom/Element.cpp |
| +++ b/sky/engine/core/dom/Element.cpp |
| @@ -83,7 +83,6 @@ |
| #include "sky/engine/core/rendering/RenderLayer.h" |
| #include "sky/engine/core/rendering/RenderView.h" |
| #include "sky/engine/platform/EventDispatchForbiddenScope.h" |
| -#include "sky/engine/platform/UserGestureIndicator.h" |
| #include "sky/engine/platform/scroll/ScrollableArea.h" |
| #include "sky/engine/wtf/BitVector.h" |
| #include "sky/engine/wtf/HashFunctions.h" |
| @@ -1212,13 +1211,11 @@ void Element::focus(bool restorePreviousSelection, FocusType type) |
| return; |
| updateFocusAppearance(restorePreviousSelection); |
| - if (UserGestureIndicator::processedUserGestureSinceLoad()) { |
| - // Bring up the keyboard in the context of anything triggered by a user |
| - // gesture. Since tracking that across arbitrary boundaries (eg. |
| - // animations) is difficult, for now we match IE's heuristic and bring |
| - // up the keyboard if there's been any gesture since load. |
| - document().page()->chrome().client().showImeIfNeeded(); |
| - } |
| + // Bring up the keyboard in the context of anything triggered by a user |
| + // gesture. Since tracking that across arbitrary boundaries (eg. |
| + // animations) is difficult, for now we match IE's heuristic and bring |
| + // up the keyboard if there's been any gesture since load. |
|
eseidel
2015/01/22 23:49:29
This comment is meaningless, no?
abarth-chromium
2015/01/22 23:59:13
Yes! Thanks.
|
| + document().page()->chrome().client().showImeIfNeeded(); |
| } |
| void Element::updateFocusAppearance(bool /*restorePreviousSelection*/) |