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 #ifndef TableSectionPainter_h | 5 #ifndef TableSectionPainter_h |
6 #define TableSectionPainter_h | 6 #define TableSectionPainter_h |
7 | 7 |
8 #include "core/paint/PaintPhase.h" | 8 #include "core/paint/PaintPhase.h" |
9 #include "core/style/ShadowData.h" | 9 #include "core/style/ShadowData.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 private: | 33 private: |
34 void paintObject(const PaintInfo&, const LayoutPoint&); | 34 void paintObject(const PaintInfo&, const LayoutPoint&); |
35 | 35 |
36 void paintBackgroundsBehindCell(const LayoutTableCell&, | 36 void paintBackgroundsBehindCell(const LayoutTableCell&, |
37 const PaintInfo&, | 37 const PaintInfo&, |
38 const LayoutPoint&); | 38 const LayoutPoint&); |
39 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&); | 39 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&); |
40 void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle); | 40 void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle); |
41 | 41 |
42 // Returns the primary cell that should be painted for the grid item at (row,
column) | 42 // Returns the primary cell that should be painted for the grid item at (row, |
43 // intersecting dirtiedRows and dirtiedColumns. Returns nullptr if we have pai
nted the grid item | 43 // column) intersecting dirtiedRows and dirtiedColumns. Returns nullptr if we |
44 // when painting the grid item left to or above (row, column) when painting ce
lls intersecting | 44 // have painted the grid item when painting the grid item left to or above |
45 // dirtiedRows and dirtiedColumns. | 45 // (row, column) when painting cells intersecting dirtiedRows and |
| 46 // dirtiedColumns. |
46 const LayoutTableCell* primaryCellToPaint( | 47 const LayoutTableCell* primaryCellToPaint( |
47 unsigned row, | 48 unsigned row, |
48 unsigned column, | 49 unsigned column, |
49 const CellSpan& dirtiedRows, | 50 const CellSpan& dirtiedRows, |
50 const CellSpan& dirtiedColumns) const; | 51 const CellSpan& dirtiedColumns) const; |
51 | 52 |
52 enum ItemToPaint { PaintCollapsedBorders, PaintSection }; | 53 enum ItemToPaint { PaintCollapsedBorders, PaintSection }; |
53 void paintRepeatingHeaderGroup(const PaintInfo&, | 54 void paintRepeatingHeaderGroup(const PaintInfo&, |
54 const LayoutPoint& paintOffset, | 55 const LayoutPoint& paintOffset, |
55 const CollapsedBorderValue& currentBorderValue, | 56 const CollapsedBorderValue& currentBorderValue, |
56 ItemToPaint); | 57 ItemToPaint); |
57 void paintSection(const PaintInfo&, const LayoutPoint&); | 58 void paintSection(const PaintInfo&, const LayoutPoint&); |
58 void paintCollapsedSectionBorders(const PaintInfo&, | 59 void paintCollapsedSectionBorders(const PaintInfo&, |
59 const LayoutPoint&, | 60 const LayoutPoint&, |
60 const CollapsedBorderValue&); | 61 const CollapsedBorderValue&); |
61 | 62 |
62 const LayoutTableSection& m_layoutTableSection; | 63 const LayoutTableSection& m_layoutTableSection; |
63 }; | 64 }; |
64 | 65 |
65 } // namespace blink | 66 } // namespace blink |
66 | 67 |
67 #endif // TableSectionPainter_h | 68 #endif // TableSectionPainter_h |
OLD | NEW |