Index: Source/WebCore/rendering/RenderTableCell.cpp |
diff --git a/Source/WebCore/rendering/RenderTableCell.cpp b/Source/WebCore/rendering/RenderTableCell.cpp |
index d339c8d6e13583bef24b827bf91861682abd5567..146b801b146b83fee47dee0b4a33759d1bda1a5a 100644 |
--- a/Source/WebCore/rendering/RenderTableCell.cpp |
+++ b/Source/WebCore/rendering/RenderTableCell.cpp |
@@ -395,14 +395,14 @@ LayoutRect RenderTableCell::clippedOverflowRectForRepaint(const RenderLayerModel |
return computeRectForRepaint(r, repaintContainer); |
} |
-LayoutRect RenderTableCell::computeRectForRepaint(const LayoutRect& rect, const RenderLayerModelObject* repaintContainer, RepaintContext context) const |
+std::optional<LayoutRect> RenderTableCell::computeVisibleRectInContainer(const LayoutRect& rect, const RenderLayerModelObject* container, VisibleRectContext context) const |
{ |
- if (repaintContainer == this) |
+ if (container == this) |
return rect; |
LayoutRect adjustedRect = rect; |
- if ((!view().frameView().layoutContext().isPaintOffsetCacheEnabled() || repaintContainer) && parent()) |
+ if ((!view().frameView().layoutContext().isPaintOffsetCacheEnabled() || container || context.m_useEdgeInclusiveIntersection) && parent()) |
adjustedRect.moveBy(-parentBox()->location()); // Rows are in the same coordinate space, so don't add their offset in. |
- return RenderBlockFlow::computeRectForRepaint(adjustedRect, repaintContainer, context); |
+ return RenderBlockFlow::computeVisibleRectInContainer(adjustedRect, container, context); |
} |
LayoutUnit RenderTableCell::cellBaselinePosition() const |