| Summary: | HitTest for RootInlineBox/InlineFlowBox should take care of border-radius. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | bfulgham, karlcow, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2022-12-18 08:27:35 PST
if (renderer().style()->hasBorderRadius()) {
LayoutRect borderRect = logicalFrameRect()
borderRect.moveBy(accumulatedOffset)
FloatRoundedRect border = renderer.style()->getRoundedBorderFor(borderRect, includeLogicalLeftEdge(), includeLogicalRightEdge());
(!locationInContainer.intersects(border))
return false;
}
^ I think it will work, will try and let's see. Might need some help.
This fails with IFC too so a fix in legacy won't do much at this point. This compiles but does not fix the failing test (might be IFC taking over):
if (renderer().style().hasBorderRadius()) {
auto borderRect = logicalFrameRect();
borderRect.moveBy(accumulatedOffset);
auto border = renderer().style().getRoundedBorderFor(LayoutRect(borderRect), includeLogicalLeftEdge(), includeLogicalRightEdge());
if (!locationInContainer.intersects(border))
return false;
}
|