OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 FloatPointWillBeLayoutPoint boxOrigin = locationIncludingFlipping(); | 84 FloatPointWillBeLayoutPoint boxOrigin = locationIncludingFlipping(); |
85 boxOrigin.moveBy(accumulatedOffset); | 85 boxOrigin.moveBy(accumulatedOffset); |
86 FloatRectWillBeLayoutRect boundsRect(boxOrigin, size()); | 86 FloatRectWillBeLayoutRect boundsRect(boxOrigin, size()); |
87 if (visibleToHitTestRequest(request) && boundsRect.intersects(FloatRectWillB
eLayoutRect(HitTestLocation::rectForPoint(locationInContainer.point(), 0, 0, 0,
0)))) { | 87 if (visibleToHitTestRequest(request) && boundsRect.intersects(FloatRectWillB
eLayoutRect(HitTestLocation::rectForPoint(locationInContainer.point(), 0, 0, 0,
0)))) { |
88 renderer().updateHitTestResult(result, locationInContainer.point() - toL
ayoutSize(adjustedLocation)); | 88 renderer().updateHitTestResult(result, locationInContainer.point() - toL
ayoutSize(adjustedLocation)); |
89 // FIXME: the call to rawValue() below is temporary and should be remove
d once the transition | 89 // FIXME: the call to rawValue() below is temporary and should be remove
d once the transition |
90 // to LayoutUnit-based types is complete (crbug.com/321237) | 90 // to LayoutUnit-based types is complete (crbug.com/321237) |
91 if (!result.addNodeToRectBasedTestResult(renderer().node(), request, loc
ationInContainer, boundsRect.rawValue())) | 91 if (!result.addNodeToListBasedTestResult(renderer().node(), request, loc
ationInContainer, boundsRect.rawValue())) |
92 return true; | 92 return true; |
93 } | 93 } |
94 | 94 |
95 return false; | 95 return false; |
96 } | 96 } |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
OLD | NEW |