Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp |
| index 2fec4ee3304a90a8a87b05cee2def5a9a4f896dc..97738e33ecd85f9e5b9576c985b23d00f620aef6 100644 |
| --- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp |
| @@ -1034,9 +1034,19 @@ bool InlineFlowBox::nodeAtPoint(HitTestResult& result, const HitTestLocation& lo |
| } |
| if (lineLayoutItem().style()->hasBorderRadius()) { |
|
pdr.
2016/03/07 21:15:51
I agree that the code in InlineBox::nodeAtPoint is
Miyoung Shin(c)
2016/03/09 12:28:07
<img> has a <div> child with inline-block for a fa
pdr.
2016/03/21 05:26:10
I think you're getting stuck on the <img> case whe
Miyoung Shin(c)
2016/03/29 22:49:40
As you suggested, I've looked at how rounded rects
|
| - LayoutRect borderRect = logicalFrameRect(); |
| + LayoutRect borderRect; |
| + bool includeLeftEdge = true; |
| + bool includeRightEdge = true; |
| + if (lineLayoutItem().isBox()) { |
| + borderRect = toLayoutBox(lineLayoutItem())->borderBoxRect(); |
| + } else { |
| + borderRect = logicalFrameRect(); |
| + includeLeftEdge = includeLogicalLeftEdge(); |
| + includeRightEdge = includeLogicalRightEdge(); |
| + } |
| + |
| borderRect.moveBy(accumulatedOffset); |
| - FloatRoundedRect border = lineLayoutItem().style()->getRoundedBorderFor(borderRect, includeLogicalLeftEdge(), includeLogicalRightEdge()); |
| + FloatRoundedRect border = lineLayoutItem().style()->getRoundedBorderFor(borderRect, includeLeftEdge, includeRightEdge); |
| if (!locationInContainer.intersects(border)) |
| return false; |
| } |