OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // The hit-tested point in the coordinates of the innerNode frame, the frame
containing innerNode. | 74 // The hit-tested point in the coordinates of the innerNode frame, the frame
containing innerNode. |
75 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode
Frame; } | 75 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode
Frame; } |
76 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point
InInnerNodeFrame()); } | 76 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point
InInnerNodeFrame()); } |
77 Frame* innerNodeFrame() const; | 77 Frame* innerNodeFrame() const; |
78 | 78 |
79 // The hit-tested point in the coordinates of the inner node. | 79 // The hit-tested point in the coordinates of the inner node. |
80 const LayoutPoint& localPoint() const { return m_localPoint; } | 80 const LayoutPoint& localPoint() const { return m_localPoint; } |
81 void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; } | 81 void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; } |
82 | 82 |
83 void setToNonShadowAncestor(); | 83 void setToNodesInDocumentTreeScope(); |
| 84 void setToShadowHostIfInUserAgentShadowRoot(); |
84 | 85 |
85 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } | 86 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } |
86 | 87 |
87 void setInnerNode(Node*); | 88 void setInnerNode(Node*); |
88 void setInnerNonSharedNode(Node*); | 89 void setInnerNonSharedNode(Node*); |
89 void setURLElement(Element*); | 90 void setURLElement(Element*); |
90 void setScrollbar(Scrollbar*); | 91 void setScrollbar(Scrollbar*); |
91 void setIsOverWidget(bool b) { m_isOverWidget = b; } | 92 void setIsOverWidget(bool b) { m_isOverWidget = b; } |
92 | 93 |
93 Frame* targetFrame() const; | 94 Frame* targetFrame() const; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 bool m_isOverWidget; // Returns true if we are over a widget (and not in the
border/padding area of a RenderWidget for example). | 149 bool m_isOverWidget; // Returns true if we are over a widget (and not in the
border/padding area of a RenderWidget for example). |
149 | 150 |
150 mutable OwnPtr<NodeSet> m_rectBasedTestResult; | 151 mutable OwnPtr<NodeSet> m_rectBasedTestResult; |
151 }; | 152 }; |
152 | 153 |
153 String displayString(const String&, const Node*); | 154 String displayString(const String&, const Node*); |
154 | 155 |
155 } // namespace WebCore | 156 } // namespace WebCore |
156 | 157 |
157 #endif // HitTestResult_h | 158 #endif // HitTestResult_h |
OLD | NEW |