Index: Source/core/paint/TableSectionPainter.cpp |
diff --git a/Source/core/paint/TableSectionPainter.cpp b/Source/core/paint/TableSectionPainter.cpp |
index 4f88eb9966bf046731c49af4da8becae5240e547..86cfc1667b219d363ea72ddcf064ce62f202641b 100644 |
--- a/Source/core/paint/TableSectionPainter.cpp |
+++ b/Source/core/paint/TableSectionPainter.cpp |
@@ -40,7 +40,7 @@ void TableSectionPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& p |
if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && m_layoutTableSection.style()->visibility() == VISIBLE) { |
LayoutRect visualOverflowRect(m_layoutTableSection.visualOverflowRect()); |
visualOverflowRect.moveBy(adjustedPaintOffset); |
- ObjectPainter(m_layoutTableSection).paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, m_layoutTableSection.size()), visualOverflowRect); |
+ ObjectPainter(m_layoutTableSection).paintOutline(paintInfo, LayoutRect(adjustedPaintOffset, m_layoutTableSection.size()), visualOverflowRect, adjustedPaintOffset); |
} |
} |
@@ -176,8 +176,8 @@ void TableSectionPainter::paintCell(LayoutTableCell* cell, const PaintInfo& pain |
if (columnHasBackground || columnGroupHasBackground || sectionHasBackground || rowHasBackground) { |
TableCellPainter tableCellPainter(*cell); |
- if (!LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, *cell, paintPhase)) { |
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, *cell, paintPhase, tableCellPainter.paintBounds(cellPoint, TableCellPainter::AddOffsetFromParent)); |
+ if (!LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, *cell, paintPhase, paintOffset)) { |
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, *cell, paintPhase, tableCellPainter.paintBounds(cellPoint, TableCellPainter::AddOffsetFromParent), paintOffset); |
// Column groups and columns first. |
// FIXME: Columns and column groups do not currently support opacity, and they are being painted "too late" in |
// the stack, since we have already opened a transparency layer (potentially) for the table row group. |