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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool intersects(const LayoutRect&) const; | 67 bool intersects(const LayoutRect&) const; |
68 bool intersects(const FloatRect&) const; | 68 bool intersects(const FloatRect&) const; |
69 bool intersects(const FloatRoundedRect&) const; | 69 bool intersects(const FloatRoundedRect&) const; |
70 bool containsPoint(const FloatPoint&) const; | 70 bool containsPoint(const FloatPoint&) const; |
71 | 71 |
72 const FloatPoint& transformedPoint() const { return m_transformedPoint; } | 72 const FloatPoint& transformedPoint() const { return m_transformedPoint; } |
73 const FloatQuad& transformedRect() const { return m_transformedRect; } | 73 const FloatQuad& transformedRect() const { return m_transformedRect; } |
74 | 74 |
75 private: | 75 private: |
76 template<typename RectType> | 76 template<typename RectType> |
77 bool intersectsRect(const RectType&) const; | 77 bool intersectsRect(const RectType&, const RectType& boundingBox) const; |
78 void move(const LayoutSize& offset); | 78 void move(const LayoutSize& offset); |
79 | 79 |
80 // This is cached forms of the more accurate point and area below. | 80 // This is cached forms of the more accurate point and area below. |
81 LayoutPoint m_point; | 81 LayoutPoint m_point; |
82 IntRect m_boundingBox; | 82 IntRect m_boundingBox; |
83 | 83 |
84 FloatPoint m_transformedPoint; | 84 FloatPoint m_transformedPoint; |
85 FloatQuad m_transformedRect; | 85 FloatQuad m_transformedRect; |
86 | 86 |
87 bool m_isRectBased; | 87 bool m_isRectBased; |
88 bool m_isRectilinear; | 88 bool m_isRectilinear; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
92 | 92 |
93 #endif // HitTestLocation_h | 93 #endif // HitTestLocation_h |
OLD | NEW |