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 "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
14 class CellSpan; | |
13 class CollapsedBorderValue; | 15 class CollapsedBorderValue; |
14 class LayoutPoint; | 16 class LayoutPoint; |
15 class LayoutTableCell; | 17 class LayoutTableCell; |
16 class LayoutTableSection; | 18 class LayoutTableSection; |
17 struct PaintInfo; | 19 struct PaintInfo; |
18 | 20 |
19 class TableSectionPainter { | 21 class TableSectionPainter { |
20 STACK_ALLOCATED(); | 22 STACK_ALLOCATED(); |
21 public: | 23 public: |
22 TableSectionPainter(const LayoutTableSection& layoutTableSection) : m_layout TableSection(layoutTableSection) { } | 24 TableSectionPainter(const LayoutTableSection& layoutTableSection) : m_layout TableSection(layoutTableSection) { } |
23 | 25 |
24 void paint(const PaintInfo&, const LayoutPoint&); | 26 void paint(const PaintInfo&, const LayoutPoint&); |
25 void paintCollapsedBorders(const PaintInfo&, const LayoutPoint&, const Colla psedBorderValue&); | 27 void paintCollapsedBorders(const PaintInfo&, const LayoutPoint&, const Colla psedBorderValue&); |
26 | 28 |
27 private: | 29 private: |
28 void paintObject(const PaintInfo&, const LayoutPoint&); | 30 void paintObject(const PaintInfo&, const LayoutPoint&); |
29 void paintCell(const LayoutTableCell&, PaintPhase originalPaintPhase, const PaintInfo&, const LayoutPoint&); | 31 |
32 void paintBackgroundsBehindCell(const LayoutTableCell&, const PaintInfo&, co nst LayoutPoint&); | |
33 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&) ; | |
34 void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle); | |
35 | |
36 const LayoutTableCell* primaryCellToPaint(unsigned row, unsigned column, con st CellSpan& dirtiedRows, const CellSpan& dirtiedColumns) const; | |
chrishtr
2016/05/14 18:03:46
This needs a comment.
| |
30 | 37 |
31 const LayoutTableSection& m_layoutTableSection; | 38 const LayoutTableSection& m_layoutTableSection; |
32 }; | 39 }; |
33 | 40 |
34 } // namespace blink | 41 } // namespace blink |
35 | 42 |
36 #endif // TableSectionPainter_h | 43 #endif // TableSectionPainter_h |
OLD | NEW |