Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1053)

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp

Issue 1657483003: Add a border radius property to inherit it from a parent in a fallback content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698