Index: Source/core/paint/TableRowPainter.cpp |
diff --git a/Source/core/paint/TableRowPainter.cpp b/Source/core/paint/TableRowPainter.cpp |
index 62508cc1b50297ed94623f5b331d460a8a52b99d..1b8f25a3a2f0b46fb8b39742c9ff2bed1690da68 100644 |
--- a/Source/core/paint/TableRowPainter.cpp |
+++ b/Source/core/paint/TableRowPainter.cpp |
@@ -24,8 +24,8 @@ void TableRowPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint |
if (paintInfo.phase == PaintPhaseBlockBackground || paintInfo.phase == PaintPhaseChildBlockBackground) { |
if (m_layoutTableRow.hasBackground()) { |
TableCellPainter tableCellPainter(*cell); |
- if (!LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, *cell, DisplayItem::TableCellBackgroundFromSelfPaintingRow)) { |
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, *cell, DisplayItem::TableCellBackgroundFromSelfPaintingRow, tableCellPainter.paintBounds(paintOffset, TableCellPainter::AddOffsetFromParent)); |
+ if (!LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, *cell, DisplayItem::TableCellBackgroundFromSelfPaintingRow, paintOffset)) { |
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, *cell, DisplayItem::TableCellBackgroundFromSelfPaintingRow, tableCellPainter.paintBounds(paintOffset, TableCellPainter::AddOffsetFromParent), paintOffset); |
tableCellPainter.paintBackgroundsBehindCell(paintInfo, paintOffset, &m_layoutTableRow); |
} |
} |
@@ -43,7 +43,7 @@ void TableRowPainter::paintOutlineForRowIfNeeded(const PaintInfo& paintInfo, con |
if ((paintPhase == PaintPhaseOutline || paintPhase == PaintPhaseSelfOutline) && m_layoutTableRow.style()->visibility() == VISIBLE) { |
LayoutRect visualOverflowRect(m_layoutTableRow.visualOverflowRect()); |
visualOverflowRect.moveBy(adjustedPaintOffset); |
- ObjectPainter(m_layoutTableRow).paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, m_layoutTableRow.size()), visualOverflowRect); |
+ ObjectPainter(m_layoutTableRow).paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, m_layoutTableRow.size()), visualOverflowRect, adjustedPaintOffset); |
} |
} |