| Index: third_party/WebKit/Source/core/layout/HitTestLocation.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/HitTestLocation.cpp b/third_party/WebKit/Source/core/layout/HitTestLocation.cpp
|
| index 65f99c1af3bc2e109830004cb365145800b5835d..9b3fe59871066fa927b5bfc9547290985977f100 100644
|
| --- a/third_party/WebKit/Source/core/layout/HitTestLocation.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/HitTestLocation.cpp
|
| @@ -110,18 +110,21 @@ void HitTestLocation::move(const LayoutSize& offset) {
|
| template <typename RectType>
|
| bool HitTestLocation::intersectsRect(const RectType& rect,
|
| const RectType& boundingBox) const {
|
| - // FIXME: When the hit test is not rect based we should use rect.contains(m_point).
|
| + // FIXME: When the hit test is not rect based we should use
|
| + // rect.contains(m_point).
|
| // That does change some corner case tests though.
|
|
|
| // First check if rect even intersects our bounding box.
|
| if (!rect.intersects(boundingBox))
|
| return false;
|
|
|
| - // If the transformed rect is rectilinear the bounding box intersection was accurate.
|
| + // If the transformed rect is rectilinear the bounding box intersection was
|
| + // accurate.
|
| if (m_isRectilinear)
|
| return true;
|
|
|
| - // If rect fully contains our bounding box, we are also sure of an intersection.
|
| + // If rect fully contains our bounding box, we are also sure of an
|
| + // intersection.
|
| if (rect.contains(boundingBox))
|
| return true;
|
|
|
| @@ -154,8 +157,10 @@ IntRect HitTestLocation::rectForPoint(const LayoutPoint& point,
|
| actualPoint -= IntSize(leftPadding, topPadding);
|
|
|
| IntSize actualPadding(leftPadding + rightPadding, topPadding + bottomPadding);
|
| - // As IntRect is left inclusive and right exclusive (seeing IntRect::contains(x, y)), adding "1".
|
| - // FIXME: Remove this once non-rect based hit-detection stops using IntRect:intersects.
|
| + // As IntRect is left inclusive and right exclusive (seeing
|
| + // IntRect::contains(x, y)), adding "1".
|
| + // FIXME: Remove this once non-rect based hit-detection stops using
|
| + // IntRect:intersects.
|
| actualPadding += IntSize(1, 1);
|
|
|
| return IntRect(actualPoint, actualPadding);
|
|
|