Chromium Code Reviews| Index: Source/core/layout/line/InlineFlowBox.cpp |
| diff --git a/Source/core/layout/line/InlineFlowBox.cpp b/Source/core/layout/line/InlineFlowBox.cpp |
| index ba754551c4e6e195dbdd2538699d3d728440992d..b9bee29f907cc2b04330bd9f79b66f0b74e4ebf3 100644 |
| --- a/Source/core/layout/line/InlineFlowBox.cpp |
| +++ b/Source/core/layout/line/InlineFlowBox.cpp |
| @@ -975,6 +975,14 @@ bool InlineFlowBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re |
| if (!locationInContainer.intersects(overflowRect)) |
| return false; |
| + if (layoutObject().style()->hasBorderRadius()) { |
| + LayoutRect borderRect = logicalFrameRect(); |
| + borderRect.moveBy(accumulatedOffset); |
| + FloatRoundedRect border = layoutObject().style()->getRoundedBorderFor(borderRect, includeLogicalLeftEdge(), includeLogicalRightEdge()); |
| + if (!locationInContainer.intersects(border)) |
|
davve
2015/03/26 10:03:36
We're heading in the right direction but it's stil
Abhijeet Kandalkar Slow
2015/03/27 11:28:59
Added implementation to handle nested inlines and
|
| + return false; |
| + } |
| + |
| // Check children first. |
| // We need to account for culled inline parents of the hit-tested nodes, so that they may also get included in area-based hit-tests. |
| LayoutObject* culledParent = 0; |