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

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

Issue 176953008: Include the outline into the visual overflow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/core/rendering/RenderTableCell.cpp
diff --git a/Source/core/rendering/RenderTableCell.cpp b/Source/core/rendering/RenderTableCell.cpp
index e33032a80302afe9369836f8112134d7c8d2ce0a..f3d7de1d1436a418963ef92fd5c6d09b23072c07 100644
--- a/Source/core/rendering/RenderTableCell.cpp
+++ b/Source/core/rendering/RenderTableCell.cpp
@@ -1107,14 +1107,11 @@ void RenderTableCell::paintCollapsedBorders(PaintInfo& paintInfo, const LayoutPo
if (!paintInfo.shouldPaintWithinRoot(this) || style()->visibility() != VISIBLE)
return;
- LayoutRect localRepaintRect = paintInfo.rect;
- localRepaintRect.inflate(maximalOutlineSize(paintInfo.phase));
-
LayoutRect paintRect = LayoutRect(paintOffset + location(), pixelSnappedSize());
- if (paintRect.y() - table()->outerBorderTop() >= localRepaintRect.maxY())
+ if (paintRect.y() - table()->outerBorderTop() >= paintInfo.rect.maxY())
return;
- if (paintRect.maxY() + table()->outerBorderBottom() <= localRepaintRect.y())
+ if (paintRect.maxY() + table()->outerBorderBottom() <= paintInfo.rect.y())
return;
GraphicsContext* graphicsContext = paintInfo.context;

Powered by Google App Engine
This is Rietveld 408576698