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 "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
| 12 class CollapsedBorderValue; |
12 class LayoutPoint; | 13 class LayoutPoint; |
13 class LayoutTableCell; | 14 class LayoutTableCell; |
14 class LayoutTableSection; | 15 class LayoutTableSection; |
15 struct PaintInfo; | 16 struct PaintInfo; |
16 | 17 |
17 class TableSectionPainter { | 18 class TableSectionPainter { |
18 STACK_ALLOCATED(); | 19 STACK_ALLOCATED(); |
19 public: | 20 public: |
20 TableSectionPainter(const LayoutTableSection& layoutTableSection) : m_layout
TableSection(layoutTableSection) { } | 21 TableSectionPainter(const LayoutTableSection& layoutTableSection) : m_layout
TableSection(layoutTableSection) { } |
21 | 22 |
22 void paint(const PaintInfo&, const LayoutPoint&); | 23 void paint(const PaintInfo&, const LayoutPoint&); |
| 24 void paintCollapsedBorders(const PaintInfo&, const LayoutPoint&, const Colla
psedBorderValue&); |
23 | 25 |
24 private: | 26 private: |
25 void paintObject(const PaintInfo&, const LayoutPoint&); | 27 void paintObject(const PaintInfo&, const LayoutPoint&); |
26 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&)
; | 28 void paintCell(const LayoutTableCell&, const PaintInfo&, const LayoutPoint&)
; |
27 | 29 |
28 const LayoutTableSection& m_layoutTableSection; | 30 const LayoutTableSection& m_layoutTableSection; |
29 }; | 31 }; |
30 | 32 |
31 } // namespace blink | 33 } // namespace blink |
32 | 34 |
33 #endif // TableSectionPainter_h | 35 #endif // TableSectionPainter_h |
OLD | NEW |