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 <algorithm> |
7 #include "core/layout/LayoutTableCell.h" | 8 #include "core/layout/LayoutTableCell.h" |
8 #include "core/layout/LayoutTableCol.h" | 9 #include "core/layout/LayoutTableCol.h" |
9 #include "core/layout/LayoutTableRow.h" | 10 #include "core/layout/LayoutTableRow.h" |
10 #include "core/paint/BoxClipper.h" | 11 #include "core/paint/BoxClipper.h" |
11 #include "core/paint/BoxPainter.h" | 12 #include "core/paint/BoxPainter.h" |
12 #include "core/paint/LayoutObjectDrawingRecorder.h" | 13 #include "core/paint/LayoutObjectDrawingRecorder.h" |
13 #include "core/paint/ObjectPainter.h" | 14 #include "core/paint/ObjectPainter.h" |
14 #include "core/paint/PaintInfo.h" | 15 #include "core/paint/PaintInfo.h" |
15 #include "core/paint/TableCellPainter.h" | 16 #include "core/paint/TableCellPainter.h" |
16 #include "core/paint/TableRowPainter.h" | 17 #include "core/paint/TableRowPainter.h" |
17 #include <algorithm> | |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 inline const LayoutTableCell* TableSectionPainter::primaryCellToPaint( | 21 inline const LayoutTableCell* TableSectionPainter::primaryCellToPaint( |
22 unsigned row, | 22 unsigned row, |
23 unsigned column, | 23 unsigned column, |
24 const CellSpan& dirtiedRows, | 24 const CellSpan& dirtiedRows, |
25 const CellSpan& dirtiedColumns) const { | 25 const CellSpan& dirtiedColumns) const { |
26 DCHECK(row >= dirtiedRows.start() && row < dirtiedRows.end()); | 26 DCHECK(row >= dirtiedRows.start() && row < dirtiedRows.end()); |
27 DCHECK(column >= dirtiedColumns.start() && column < dirtiedColumns.end()); | 27 DCHECK(column >= dirtiedColumns.start() && column < dirtiedColumns.end()); |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 m_layoutTableSection.styleRef()); | 407 m_layoutTableSection.styleRef()); |
408 } else { | 408 } else { |
409 // TODO(wangxianzhu): Calculate the inset shadow bounds by insetting | 409 // TODO(wangxianzhu): Calculate the inset shadow bounds by insetting |
410 // paintRect by half widths of collapsed borders. | 410 // paintRect by half widths of collapsed borders. |
411 BoxPainter::paintInsetBoxShadow(paintInfo, paintRect, | 411 BoxPainter::paintInsetBoxShadow(paintInfo, paintRect, |
412 m_layoutTableSection.styleRef()); | 412 m_layoutTableSection.styleRef()); |
413 } | 413 } |
414 } | 414 } |
415 | 415 |
416 } // namespace blink | 416 } // namespace blink |
OLD | NEW |