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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 RenderObject* renderer() const; | 93 RenderObject* renderer() const; |
94 | 94 |
95 void setToShadowHostIfInUserAgentShadowRoot(); | 95 void setToShadowHostIfInUserAgentShadowRoot(); |
96 | 96 |
97 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } | 97 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } |
98 | 98 |
99 void setInnerNode(Node*); | 99 void setInnerNode(Node*); |
100 void setInnerNonSharedNode(Node*); | 100 void setInnerNonSharedNode(Node*); |
101 void setURLElement(Element*); | 101 void setURLElement(Element*); |
102 void setScrollbar(Scrollbar*); | 102 void setScrollbar(Scrollbar*); |
| 103 void setIsFirstLetter(bool b) { m_isFirstLetter = b; } |
103 void setIsOverWidget(bool b) { m_isOverWidget = b; } | 104 void setIsOverWidget(bool b) { m_isOverWidget = b; } |
104 | 105 |
105 bool isSelected() const; | 106 bool isSelected() const; |
106 String spellingToolTip(TextDirection&) const; | 107 String spellingToolTip(TextDirection&) const; |
107 String title(TextDirection&) const; | 108 String title(TextDirection&) const; |
108 const AtomicString& altDisplayString() const; | 109 const AtomicString& altDisplayString() const; |
109 Image* image() const; | 110 Image* image() const; |
110 IntRect imageRect() const; | 111 IntRect imageRect() const; |
111 KURL absoluteImageURL() const; | 112 KURL absoluteImageURL() const; |
112 KURL absoluteMediaURL() const; | 113 KURL absoluteMediaURL() const; |
(...skipping 27 matching lines...) Expand all Loading... |
140 RefPtrWillBeMember<Node> m_innerNode; | 141 RefPtrWillBeMember<Node> m_innerNode; |
141 RefPtrWillBeMember<Node> m_innerPossiblyPseudoNode; | 142 RefPtrWillBeMember<Node> m_innerPossiblyPseudoNode; |
142 RefPtrWillBeMember<Node> m_innerNonSharedNode; | 143 RefPtrWillBeMember<Node> m_innerNonSharedNode; |
143 // FIXME: Nothing changes this to a value different from m_hitTestLocation! | 144 // FIXME: Nothing changes this to a value different from m_hitTestLocation! |
144 LayoutPoint m_pointInInnerNodeFrame; // The hit-tested point in innerNode fr
ame coordinates. | 145 LayoutPoint m_pointInInnerNodeFrame; // The hit-tested point in innerNode fr
ame coordinates. |
145 LayoutPoint m_localPoint; // A point in the local coordinate space of m_inne
rNonSharedNode's renderer. Allows us to efficiently | 146 LayoutPoint m_localPoint; // A point in the local coordinate space of m_inne
rNonSharedNode's renderer. Allows us to efficiently |
146 // determine where inside the renderer we hit on s
ubsequent operations. | 147 // determine where inside the renderer we hit on s
ubsequent operations. |
147 RefPtrWillBeMember<Element> m_innerURLElement; | 148 RefPtrWillBeMember<Element> m_innerURLElement; |
148 RefPtrWillBeMember<Scrollbar> m_scrollbar; | 149 RefPtrWillBeMember<Scrollbar> m_scrollbar; |
149 bool m_isOverWidget; // Returns true if we are over a widget (and not in the
border/padding area of a RenderPart for example). | 150 bool m_isOverWidget; // Returns true if we are over a widget (and not in the
border/padding area of a RenderPart for example). |
| 151 bool m_isFirstLetter; |
150 | 152 |
151 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult; | 153 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult; |
152 }; | 154 }; |
153 | 155 |
154 } // namespace blink | 156 } // namespace blink |
155 | 157 |
156 #endif // HitTestResult_h | 158 #endif // HitTestResult_h |
OLD | NEW |