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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineBox.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, 11 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/InlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
index d07c203204359f08a871b8f826515b7569cea595..3e3e6426c6330aa0963504e4db147a76f81b283b 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
@@ -226,6 +226,8 @@ bool InlineBox::nodeAtPoint(HitTestResult& result, const HitTestLocation& locati
if (parent()->lineLayoutItem().hasFlippedBlocksWritingMode()) // Faster than calling containingBlock().
childPoint = layoutObject().containingBlock()->flipForWritingModeForChild(&toLayoutBox(layoutObject()), childPoint);
+ bool inside = lineLayoutItem().hitTest(result, locationInContainer, childPoint);
pdr. 2016/01/31 21:32:36 The other nodeAtPoint functions follow a pattern w
Miyoung Shin(c) 2016/02/05 23:40:03 Your right. I found out we have only this issue wi
+
if (lineLayoutItem().style()->hasBorderRadius()) {
LayoutRect borderRect = logicalFrameRect();
borderRect.moveBy(accumulatedOffset);
@@ -233,8 +235,7 @@ bool InlineBox::nodeAtPoint(HitTestResult& result, const HitTestLocation& locati
if (!locationInContainer.intersects(border))
return false;
}
-
- return lineLayoutItem().hitTest(result, locationInContainer, childPoint);
+ return inside;
}
const RootInlineBox& InlineBox::root() const

Powered by Google App Engine
This is Rietveld 408576698