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

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

Issue 564973002: Move a bunch more painting code out of RenderBoxModelObject and into BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary include. Created 6 years, 3 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 7c80ef0384ca6600ea0928bde16f079045b28a31..f6747b20b76a9cac4df129a6ed3f464f708cec4c 100644
--- a/Source/core/rendering/RenderTableCell.cpp
+++ b/Source/core/rendering/RenderTableCell.cpp
@@ -1142,7 +1142,7 @@ void RenderTableCell::paintCollapsedBorders(PaintInfo& paintInfo, const LayoutPo
borders.addBorder(rightVal, BSRight, renderRight, borderRect.maxX() - rightWidth, borderRect.y(), borderRect.maxX(), borderRect.maxY(), rightStyle);
GraphicsContext* graphicsContext = paintInfo.context;
- bool antialias = shouldAntialiasLines(graphicsContext);
+ bool antialias = BoxPainter::shouldAntialiasLines(graphicsContext);
for (CollapsedBorder* border = borders.nextBorder(); border; border = borders.nextBorder()) {
if (border->borderValue.isSameIgnoringColor(*table()->currentBorderValue())) {
@@ -1197,18 +1197,20 @@ void RenderTableCell::paintBoxDecorationBackground(PaintInfo& paintInfo, const L
if (!tableElt->collapseBorders() && style()->emptyCells() == HIDE && !firstChild())
return;
+ BoxPainter boxPainter(*this);
+
LayoutRect paintRect = LayoutRect(paintOffset, pixelSnappedSize());
- paintBoxShadow(paintInfo, paintRect, style(), Normal);
+ boxPainter.paintBoxShadow(paintInfo, paintRect, style(), Normal);
// Paint our cell background.
paintBackgroundsBehindCell(paintInfo, paintOffset, this);
- paintBoxShadow(paintInfo, paintRect, style(), Inset);
+ boxPainter.paintBoxShadow(paintInfo, paintRect, style(), Inset);
if (!style()->hasBorder() || tableElt->collapseBorders())
return;
- paintBorder(paintInfo, paintRect, style());
+ BoxPainter(*this).paintBorder(paintInfo, paintRect, style());
pdr. 2014/09/11 21:00:39 Similarly here.
}
void RenderTableCell::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
« Source/core/rendering/RenderFieldset.cpp ('K') | « Source/core/rendering/RenderObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698