| 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/TableSectionPainter.h" | 5 #include "core/paint/TableSectionPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutTable.h" | |
| 8 #include "core/layout/LayoutTableCell.h" | 7 #include "core/layout/LayoutTableCell.h" |
| 9 #include "core/layout/LayoutTableCol.h" | 8 #include "core/layout/LayoutTableCol.h" |
| 10 #include "core/layout/LayoutTableRow.h" | 9 #include "core/layout/LayoutTableRow.h" |
| 11 #include "core/paint/BlockPainter.h" | |
| 12 #include "core/paint/BoxClipper.h" | 10 #include "core/paint/BoxClipper.h" |
| 13 #include "core/paint/BoxPainter.h" | |
| 14 #include "core/paint/LayoutObjectDrawingRecorder.h" | |
| 15 #include "core/paint/ObjectPainter.h" | 11 #include "core/paint/ObjectPainter.h" |
| 16 #include "core/paint/PaintInfo.h" | 12 #include "core/paint/PaintInfo.h" |
| 17 #include "core/paint/TableCellPainter.h" | 13 #include "core/paint/TableCellPainter.h" |
| 18 #include "core/paint/TableRowPainter.h" | 14 #include "core/paint/TableRowPainter.h" |
| 19 #include <algorithm> | 15 #include <algorithm> |
| 20 | 16 |
| 21 namespace blink { | 17 namespace blink { |
| 22 | 18 |
| 23 inline const LayoutTableCell* TableSectionPainter::primaryCellToPaint(unsigned r
ow, unsigned column, const CellSpan& dirtiedRows, const CellSpan& dirtiedColumns
) const | 19 inline const LayoutTableCell* TableSectionPainter::primaryCellToPaint(unsigned r
ow, unsigned column, const CellSpan& dirtiedRows, const CellSpan& dirtiedColumns
) const |
| 24 { | 20 { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 231 |
| 236 void TableSectionPainter::paintCell(const LayoutTableCell& cell, const PaintInfo
& paintInfoForCells, const LayoutPoint& paintOffset) | 232 void TableSectionPainter::paintCell(const LayoutTableCell& cell, const PaintInfo
& paintInfoForCells, const LayoutPoint& paintOffset) |
| 237 { | 233 { |
| 238 if (!cell.hasSelfPaintingLayer() && !cell.row()->hasSelfPaintingLayer()) { | 234 if (!cell.hasSelfPaintingLayer() && !cell.row()->hasSelfPaintingLayer()) { |
| 239 LayoutPoint cellPoint = m_layoutTableSection.flipForWritingModeForChild(
&cell, paintOffset); | 235 LayoutPoint cellPoint = m_layoutTableSection.flipForWritingModeForChild(
&cell, paintOffset); |
| 240 cell.paint(paintInfoForCells, cellPoint); | 236 cell.paint(paintInfoForCells, cellPoint); |
| 241 } | 237 } |
| 242 } | 238 } |
| 243 | 239 |
| 244 } // namespace blink | 240 } // namespace blink |
| OLD | NEW |