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 846bc7e25c34fa0831f60d03584e465b7b9e28a5..1eea5be3c32251794d3dab9599f74e55d3df363c 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2637,7 +2637,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 |