Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Unified Diff: Source/WebCore/rendering/RenderTableCell.cpp

Issue 342250043: Builds
Patch Set: FIx bug and clean up the should-apply-clip logic Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderTableCell.h ('k') | Source/WebCore/rendering/RenderView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/WebCore/rendering/RenderTableCell.h ('k') | Source/WebCore/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b