Chromium Code Reviews| 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) |