Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index ecdb52eec9653dd892368003319323491538c2e3..75e7dc2bd9c6858f091c7370b8d62719833f01d8 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2659,7 +2659,7 @@ void Element::focus(const FocusParams& params) { |
return; |
if (document().focusedElement() == this && |
- document().hasReceivedUserGesture()) { |
+ document().frame()->hasReceivedUserGesture()) { |
// 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 |