| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * (C) 2007 Eric Seidel (eric@webkit.org) | 9 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 10 * | 10 * |
| (...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2658 if (!document().page()->focusController().setFocusedElement( | 2658 if (!document().page()->focusController().setFocusedElement( |
| 2659 this, document().frame(), params)) | 2659 this, document().frame(), params)) |
| 2660 return; | 2660 return; |
| 2661 | 2661 |
| 2662 if (document().focusedElement() == this && | 2662 if (document().focusedElement() == this && |
| 2663 document().frame()->hasReceivedUserGesture()) { | 2663 document().frame()->hasReceivedUserGesture()) { |
| 2664 // Bring up the keyboard in the context of anything triggered by a user | 2664 // Bring up the keyboard in the context of anything triggered by a user |
| 2665 // gesture. Since tracking that across arbitrary boundaries (eg. | 2665 // gesture. Since tracking that across arbitrary boundaries (eg. |
| 2666 // animations) is difficult, for now we match IE's heuristic and bring | 2666 // animations) is difficult, for now we match IE's heuristic and bring |
| 2667 // up the keyboard if there's been any gesture since load. | 2667 // up the keyboard if there's been any gesture since load. |
| 2668 document().page()->chromeClient().showVirtualKeyboard(); | 2668 document().page()->chromeClient().showVirtualKeyboardOnElementFocus(); |
| 2669 } | 2669 } |
| 2670 } | 2670 } |
| 2671 | 2671 |
| 2672 void Element::updateFocusAppearance( | 2672 void Element::updateFocusAppearance( |
| 2673 SelectionBehaviorOnFocus selectionBehavior) { | 2673 SelectionBehaviorOnFocus selectionBehavior) { |
| 2674 if (selectionBehavior == SelectionBehaviorOnFocus::None) | 2674 if (selectionBehavior == SelectionBehaviorOnFocus::None) |
| 2675 return; | 2675 return; |
| 2676 if (isRootEditableElement(*this)) { | 2676 if (isRootEditableElement(*this)) { |
| 2677 LocalFrame* frame = document().frame(); | 2677 LocalFrame* frame = document().frame(); |
| 2678 if (!frame) | 2678 if (!frame) |
| (...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4125 } | 4125 } |
| 4126 | 4126 |
| 4127 DEFINE_TRACE_WRAPPERS(Element) { | 4127 DEFINE_TRACE_WRAPPERS(Element) { |
| 4128 if (hasRareData()) { | 4128 if (hasRareData()) { |
| 4129 visitor->traceWrappers(elementRareData()); | 4129 visitor->traceWrappers(elementRareData()); |
| 4130 } | 4130 } |
| 4131 ContainerNode::traceWrappers(visitor); | 4131 ContainerNode::traceWrappers(visitor); |
| 4132 } | 4132 } |
| 4133 | 4133 |
| 4134 } // namespace blink | 4134 } // namespace blink |
| OLD | NEW |