Index: Source/core/paint/TableCellPainter.cpp |
diff --git a/Source/core/paint/TableCellPainter.cpp b/Source/core/paint/TableCellPainter.cpp |
index 33a05f3b6dfe22449bbc06a0ae33b8b02456b6c9..3a20b1d9df22e6da123cd9962f12c3823a1806bc 100644 |
--- a/Source/core/paint/TableCellPainter.cpp |
+++ b/Source/core/paint/TableCellPainter.cpp |
@@ -115,7 +115,7 @@ void TableCellPainter::paintCollapsedBorders(const PaintInfo& paintInfo, const L |
if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*graphicsContext, m_layoutTableCell, static_cast<DisplayItem::Type>(displayItemType))) |
return; |
- LayoutObjectDrawingRecorder recorder(*graphicsContext, m_layoutTableCell, static_cast<DisplayItem::Type>(displayItemType), borderRect); |
+ LayoutObjectDrawingRecorder recorder(*graphicsContext, m_layoutTableCell, static_cast<DisplayItem::Type>(displayItemType), LayoutRect(borderRect)); |
Color cellColor = m_layoutTableCell.resolveColor(CSSPropertyColor); |
bool antialias = BoxPainter::shouldAntialiasLines(graphicsContext); |
@@ -167,7 +167,8 @@ void TableCellPainter::paintBackgroundsBehindCell(const PaintInfo& paintInfo, co |
if (shouldClip) { |
LayoutRect clipRect(paintRect.location(), m_layoutTableCell.size()); |
clipRect.expand(m_layoutTableCell.borderInsets()); |
- paintInfo.context->clip(clipRect); |
+ // TODO(chrishtr): should this be pixel-snapped? |
+ paintInfo.context->clip(FloatRect(clipRect)); |
} |
BoxPainter(m_layoutTableCell).paintFillLayers(paintInfo, c, bgLayer, paintRect, BackgroundBleedNone, SkXfermode::kSrcOver_Mode, backgroundObject); |
} |
@@ -191,7 +192,8 @@ void TableCellPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, |
LayoutRect visualOverflowRect = m_layoutTableCell.visualOverflowRect(); |
visualOverflowRect.moveBy(paintOffset); |
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTableCell, DisplayItem::BoxDecorationBackground, pixelSnappedIntRect(visualOverflowRect)); |
+ // TODO(chrishtr): the pixel-snapping here is likely incorrect. |
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTableCell, DisplayItem::BoxDecorationBackground, LayoutRect(pixelSnappedIntRect(visualOverflowRect))); |
LayoutRect paintRect = paintBounds(paintOffset, DoNotAddOffsetFromParent); |