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 void TableSectionPainter::PaintRepeatingHeaderGroup( | 21 void TableSectionPainter::PaintRepeatingHeaderGroup( |
22 const PaintInfo& paint_info, | 22 const PaintInfo& paint_info, |
23 const LayoutPoint& paint_offset, | 23 const LayoutPoint& paint_offset, |
24 const CollapsedBorderValue& current_border_value, | 24 const CollapsedBorderValue& current_border_value, |
25 ItemToPaint item_to_paint) { | 25 ItemToPaint item_to_paint) { |
26 if (!layout_table_section_.IsRepeatingHeaderGroup()) | 26 if (!layout_table_section_.IsRepeatingHeaderGroup()) |
27 return; | 27 return; |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 const PaintInfo& paint_info_for_cells, | 380 const PaintInfo& paint_info_for_cells, |
381 const LayoutPoint& paint_offset) { | 381 const LayoutPoint& paint_offset) { |
382 if (!cell.HasSelfPaintingLayer() && !cell.Row()->HasSelfPaintingLayer()) { | 382 if (!cell.HasSelfPaintingLayer() && !cell.Row()->HasSelfPaintingLayer()) { |
383 LayoutPoint cell_point = | 383 LayoutPoint cell_point = |
384 layout_table_section_.FlipForWritingModeForChild(&cell, paint_offset); | 384 layout_table_section_.FlipForWritingModeForChild(&cell, paint_offset); |
385 cell.Paint(paint_info_for_cells, cell_point); | 385 cell.Paint(paint_info_for_cells, cell_point); |
386 } | 386 } |
387 } | 387 } |
388 | 388 |
389 } // namespace blink | 389 } // namespace blink |
OLD | NEW |