Index: Source/core/paint/TableCellPainter.cpp |
diff --git a/Source/core/paint/TableCellPainter.cpp b/Source/core/paint/TableCellPainter.cpp |
index 33a05f3b6dfe22449bbc06a0ae33b8b02456b6c9..69dbf214ab578951c76139cb9c0c860f6c531059 100644 |
--- a/Source/core/paint/TableCellPainter.cpp |
+++ b/Source/core/paint/TableCellPainter.cpp |
@@ -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,6 +192,7 @@ void TableCellPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, |
LayoutRect visualOverflowRect = m_layoutTableCell.visualOverflowRect(); |
visualOverflowRect.moveBy(paintOffset); |
+ // TODO(chrishtr): the pixel-snapping here is likely incorrect. |
LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutTableCell, DisplayItem::BoxDecorationBackground, pixelSnappedIntRect(visualOverflowRect)); |
LayoutRect paintRect = paintBounds(paintOffset, DoNotAddOffsetFromParent); |