84 // Rect-based hit test related methods. |
84 // Rect-based hit test related methods. |
85 bool isRectBasedTest() const { return m_isRectBased; } |
85 bool isRectBasedTest() const { return m_isRectBased; } |
86 IntRect rectFromPoint(int x, int y) const; |
86 IntRect rectFromPoint(int x, int y) const; |
87 IntRect rectFromPoint(const IntPoint&) const; |
87 IntRect rectFromPoint(const IntPoint&) const; |
88 IntSize padding() const { return m_padding; } |
88 IntSize padding() const { return m_padding; } |
89 int paddingWidth() const { return m_padding.width() >= 0 ? m_padding.width() : 0; } |
89 int paddingWidth() const { return m_padding.width(); } |
90 int paddingHeight() const { return m_padding.height() >= 0 ? m_padding.height() : 0; } |
90 int paddingHeight() const { return m_padding.height(); } |
91 // Returns true if it is rect-based hit test and needs to continue until the rect is fully |
91 // Returns true if it is rect-based hit test and needs to continue until the rect is fully |
92 // enclosed by the boundaries of a node. |
92 // enclosed by the boundaries of a node. |
93 bool addNodeToRectBasedTestResult(Node*, int x, int y, const IntRect& rect = IntRect()); |
93 bool addNodeToRectBasedTestResult(Node*, int x, int y, const IntRect& rect = IntRect()); |
94 const ListHashSet<RefPtr<Node> >& rectBasedTestResult() const { return m_rectBasedTestResult; } |
94 const ListHashSet<RefPtr<Node> >& rectBasedTestResult() const { return m_rectBasedTestResult; } |
95 void append(const HitTestResult&); |
95 void append(const HitTestResult&); |