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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" | 131 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" |
132 #include "core/page/scrolling/ScrollState.h" | 132 #include "core/page/scrolling/ScrollState.h" |
133 #include "core/page/scrolling/ScrollStateCallback.h" | 133 #include "core/page/scrolling/ScrollStateCallback.h" |
134 #include "core/page/scrolling/TopDocumentRootScrollerController.h" | 134 #include "core/page/scrolling/TopDocumentRootScrollerController.h" |
135 #include "core/paint/PaintLayer.h" | 135 #include "core/paint/PaintLayer.h" |
136 #include "core/svg/SVGAElement.h" | 136 #include "core/svg/SVGAElement.h" |
137 #include "core/svg/SVGDocumentExtensions.h" | 137 #include "core/svg/SVGDocumentExtensions.h" |
138 #include "core/svg/SVGElement.h" | 138 #include "core/svg/SVGElement.h" |
139 #include "platform/EventDispatchForbiddenScope.h" | 139 #include "platform/EventDispatchForbiddenScope.h" |
140 #include "platform/RuntimeEnabledFeatures.h" | 140 #include "platform/RuntimeEnabledFeatures.h" |
141 #include "platform/UserGestureIndicator.h" | |
142 #include "platform/graphics/CompositorMutableProperties.h" | 141 #include "platform/graphics/CompositorMutableProperties.h" |
143 #include "platform/graphics/CompositorMutation.h" | 142 #include "platform/graphics/CompositorMutation.h" |
144 #include "platform/scroll/ScrollableArea.h" | 143 #include "platform/scroll/ScrollableArea.h" |
145 #include "wtf/BitVector.h" | 144 #include "wtf/BitVector.h" |
146 #include "wtf/HashFunctions.h" | 145 #include "wtf/HashFunctions.h" |
147 #include "wtf/text/CString.h" | 146 #include "wtf/text/CString.h" |
148 #include "wtf/text/StringBuilder.h" | 147 #include "wtf/text/StringBuilder.h" |
149 #include "wtf/text/TextPosition.h" | 148 #include "wtf/text/TextPosition.h" |
150 #include <memory> | 149 #include <memory> |
151 | 150 |
(...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2619 WebFocusTypeForward, nullptr)); | 2618 WebFocusTypeForward, nullptr)); |
2620 return; | 2619 return; |
2621 } | 2620 } |
2622 } | 2621 } |
2623 | 2622 |
2624 if (!document().page()->focusController().setFocusedElement( | 2623 if (!document().page()->focusController().setFocusedElement( |
2625 this, document().frame(), params)) | 2624 this, document().frame(), params)) |
2626 return; | 2625 return; |
2627 | 2626 |
2628 if (document().focusedElement() == this && | 2627 if (document().focusedElement() == this && |
2629 UserGestureIndicator::processedUserGestureSinceLoad()) { | 2628 document().hasReceivedUserGesture()) { |
2630 // Bring up the keyboard in the context of anything triggered by a user | 2629 // Bring up the keyboard in the context of anything triggered by a user |
2631 // gesture. Since tracking that across arbitrary boundaries (eg. | 2630 // gesture. Since tracking that across arbitrary boundaries (eg. |
2632 // animations) is difficult, for now we match IE's heuristic and bring | 2631 // animations) is difficult, for now we match IE's heuristic and bring |
2633 // up the keyboard if there's been any gesture since load. | 2632 // up the keyboard if there's been any gesture since load. |
2634 document().page()->chromeClient().showImeIfNeeded(); | 2633 document().page()->chromeClient().showImeIfNeeded(); |
2635 } | 2634 } |
2636 } | 2635 } |
2637 | 2636 |
2638 void Element::updateFocusAppearance( | 2637 void Element::updateFocusAppearance( |
2639 SelectionBehaviorOnFocus selectionBehavior) { | 2638 SelectionBehaviorOnFocus selectionBehavior) { |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4095 } | 4094 } |
4096 | 4095 |
4097 DEFINE_TRACE_WRAPPERS(Element) { | 4096 DEFINE_TRACE_WRAPPERS(Element) { |
4098 if (hasRareData()) { | 4097 if (hasRareData()) { |
4099 visitor->traceWrappers(elementRareData()); | 4098 visitor->traceWrappers(elementRareData()); |
4100 } | 4099 } |
4101 ContainerNode::traceWrappers(visitor); | 4100 ContainerNode::traceWrappers(visitor); |
4102 } | 4101 } |
4103 | 4102 |
4104 } // namespace blink | 4103 } // namespace blink |
OLD | NEW |