Index: Source/core/layout/line/InlineFlowBox.cpp |
diff --git a/Source/core/layout/line/InlineFlowBox.cpp b/Source/core/layout/line/InlineFlowBox.cpp |
index 7429b636a4abc761a9dcf4066584f2b47fb03950..0dfcfa10fbba0a2cae009c46260a3b0b65bbc0e0 100644 |
--- a/Source/core/layout/line/InlineFlowBox.cpp |
+++ b/Source/core/layout/line/InlineFlowBox.cpp |
@@ -1012,6 +1012,14 @@ bool InlineFlowBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& re |
culledParent = culledParent->parent(); |
} |
+ if (layoutObject().style()->hasBorderRadius()) { |
+ LayoutRect borderRect = logicalFrameRect(); |
+ borderRect.moveBy(accumulatedOffset); |
+ FloatRoundedRect border = layoutObject().style()->getRoundedBorderFor(borderRect, includeLogicalLeftEdge(), includeLogicalRightEdge()); |
+ if (!locationInContainer.intersects(border)) |
+ return false; |
+ } |
+ |
// Now check ourselves. Pixel snap hit testing. |
LayoutRect frameRect(roundedFrameRect()); |
LayoutUnit minX = frameRect.x(); |