| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/paint/TableRowPainter.h" | 5 #include "core/paint/TableRowPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutTableCell.h" | 7 #include "core/layout/LayoutTableCell.h" |
| 8 #include "core/layout/LayoutTableRow.h" | 8 #include "core/layout/LayoutTableRow.h" |
| 9 #include "core/paint/BoxPainter.h" | |
| 10 #include "core/paint/LayoutObjectDrawingRecorder.h" | |
| 11 #include "core/paint/ObjectPainter.h" | 9 #include "core/paint/ObjectPainter.h" |
| 12 #include "core/paint/PaintInfo.h" | 10 #include "core/paint/PaintInfo.h" |
| 13 #include "core/paint/TableCellPainter.h" | 11 #include "core/paint/TableCellPainter.h" |
| 14 | 12 |
| 15 namespace blink { | 13 namespace blink { |
| 16 | 14 |
| 17 void TableRowPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint
Offset) | 15 void TableRowPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint
Offset) |
| 18 { | 16 { |
| 19 DCHECK(m_layoutTableRow.hasSelfPaintingLayer()); | 17 DCHECK(m_layoutTableRow.hasSelfPaintingLayer()); |
| 20 | 18 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 48 } | 46 } |
| 49 | 47 |
| 50 void TableRowPainter::paintBackgroundBehindCell(const LayoutTableCell& cell, con
st PaintInfo& paintInfo, const LayoutPoint& paintOffset) | 48 void TableRowPainter::paintBackgroundBehindCell(const LayoutTableCell& cell, con
st PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
| 51 { | 49 { |
| 52 DCHECK(m_layoutTableRow.hasBackground() && !m_layoutTableRow.hasSelfPainting
Layer()); | 50 DCHECK(m_layoutTableRow.hasBackground() && !m_layoutTableRow.hasSelfPainting
Layer()); |
| 53 LayoutPoint cellPoint = m_layoutTableRow.section()->flipForWritingModeForChi
ld(&cell, paintOffset); | 51 LayoutPoint cellPoint = m_layoutTableRow.section()->flipForWritingModeForChi
ld(&cell, paintOffset); |
| 54 TableCellPainter(cell).paintContainerBackgroundBehindCell(paintInfo, cellPoi
nt, m_layoutTableRow, DisplayItem::TableCellBackgroundFromRow); | 52 TableCellPainter(cell).paintContainerBackgroundBehindCell(paintInfo, cellPoi
nt, m_layoutTableRow, DisplayItem::TableCellBackgroundFromRow); |
| 55 } | 53 } |
| 56 | 54 |
| 57 } // namespace blink | 55 } // namespace blink |
| OLD | NEW |