| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) |
| 3 * Copyright (C) 2009 Antonio Gomes <tonikitoo@webkit.org> | 3 * Copyright (C) 2009 Antonio Gomes <tonikitoo@webkit.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 FocusCandidate(Node*, WebFocusType); | 111 FocusCandidate(Node*, WebFocusType); |
| 112 explicit FocusCandidate(HTMLAreaElement*, WebFocusType); | 112 explicit FocusCandidate(HTMLAreaElement*, WebFocusType); |
| 113 bool isNull() const { return !visibleNode; } | 113 bool isNull() const { return !visibleNode; } |
| 114 bool inScrollableContainer() const { return visibleNode && enclosingScrollab
leBox; } | 114 bool inScrollableContainer() const { return visibleNode && enclosingScrollab
leBox; } |
| 115 bool isFrameOwnerElement() const { return visibleNode && visibleNode->isFram
eOwnerElement(); } | 115 bool isFrameOwnerElement() const { return visibleNode && visibleNode->isFram
eOwnerElement(); } |
| 116 Document* document() const { return visibleNode ? &visibleNode->document() :
nullptr; } | 116 Document* document() const { return visibleNode ? &visibleNode->document() :
nullptr; } |
| 117 | 117 |
| 118 // We handle differently visibleNode and FocusableNode to properly handle th
e areas of imagemaps, | 118 // We handle differently visibleNode and FocusableNode to properly handle th
e areas of imagemaps, |
| 119 // where visibleNode would represent the image element and focusableNode wou
ld represent the area element. | 119 // where visibleNode would represent the image element and focusableNode wou
ld represent the area element. |
| 120 // In all other cases, visibleNode and focusableNode are one and the same. | 120 // In all other cases, visibleNode and focusableNode are one and the same. |
| 121 RawPtrWillBeMember<Node> visibleNode; | 121 Member<Node> visibleNode; |
| 122 RawPtrWillBeMember<Node> focusableNode; | 122 Member<Node> focusableNode; |
| 123 RawPtrWillBeMember<Node> enclosingScrollableBox; | 123 Member<Node> enclosingScrollableBox; |
| 124 double distance; | 124 double distance; |
| 125 LayoutRect rect; | 125 LayoutRect rect; |
| 126 bool isOffscreen; | 126 bool isOffscreen; |
| 127 bool isOffscreenAfterScrolling; | 127 bool isOffscreenAfterScrolling; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 bool hasOffscreenRect(Node*, WebFocusType = WebFocusTypeNone); | 130 bool hasOffscreenRect(Node*, WebFocusType = WebFocusTypeNone); |
| 131 bool scrollInDirection(LocalFrame*, WebFocusType); | 131 bool scrollInDirection(LocalFrame*, WebFocusType); |
| 132 bool scrollInDirection(Node* container, WebFocusType); | 132 bool scrollInDirection(Node* container, WebFocusType); |
| 133 bool canScrollInDirection(const Node* container, WebFocusType); | 133 bool canScrollInDirection(const Node* container, WebFocusType); |
| 134 bool canScrollInDirection(const LocalFrame*, WebFocusType); | 134 bool canScrollInDirection(const LocalFrame*, WebFocusType); |
| 135 bool canBeScrolledIntoView(WebFocusType, const FocusCandidate&); | 135 bool canBeScrolledIntoView(WebFocusType, const FocusCandidate&); |
| 136 bool areElementsOnSameLine(const FocusCandidate& firstCandidate, const FocusCand
idate& secondCandidate); | 136 bool areElementsOnSameLine(const FocusCandidate& firstCandidate, const FocusCand
idate& secondCandidate); |
| 137 void distanceDataForNode(WebFocusType, const FocusCandidate& current, FocusCandi
date&); | 137 void distanceDataForNode(WebFocusType, const FocusCandidate& current, FocusCandi
date&); |
| 138 Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(WebFocusType, Node*)
; | 138 Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(WebFocusType, Node*)
; |
| 139 LayoutRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false); | 139 LayoutRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false); |
| 140 LayoutRect frameRectInAbsoluteCoordinates(LocalFrame*); | 140 LayoutRect frameRectInAbsoluteCoordinates(LocalFrame*); |
| 141 LayoutRect virtualRectForDirection(WebFocusType, const LayoutRect& startingRect,
LayoutUnit width = LayoutUnit()); | 141 LayoutRect virtualRectForDirection(WebFocusType, const LayoutRect& startingRect,
LayoutUnit width = LayoutUnit()); |
| 142 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, WebFocusType)
; | 142 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement&, WebFocusType)
; |
| 143 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate&); | 143 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate&); |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| 146 | 146 |
| 147 #endif // SpatialNavigation_h | 147 #endif // SpatialNavigation_h |
| OLD | NEW |