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 TablePainter_h | 5 #ifndef TablePainter_h |
6 #define TablePainter_h | 6 #define TablePainter_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; |
| 13 class LayoutBox; |
12 class LayoutPoint; | 14 class LayoutPoint; |
13 class LayoutTable; | 15 class LayoutTable; |
14 struct PaintInfo; | 16 struct PaintInfo; |
15 | 17 |
16 class TablePainter { | 18 class TablePainter { |
17 STACK_ALLOCATED(); | 19 STACK_ALLOCATED(); |
18 public: | 20 public: |
19 TablePainter(const LayoutTable& layoutTable) : m_layoutTable(layoutTable) {
} | 21 TablePainter(const LayoutTable& layoutTable) : m_layoutTable(layoutTable) {
} |
20 | 22 |
21 void paintObject(const PaintInfo&, const LayoutPoint&); | 23 void paintObject(const PaintInfo&, const LayoutPoint&); |
22 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); | 24 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); |
23 void paintMask(const PaintInfo&, const LayoutPoint&); | 25 void paintMask(const PaintInfo&, const LayoutPoint&); |
24 | 26 |
25 private: | 27 private: |
| 28 enum ItemToPaint { |
| 29 PaintCollapsedBorders, |
| 30 PaintChild |
| 31 }; |
| 32 void paintRepeatingHeaderGroup(const PaintInfo&, const LayoutPoint& paintOff
set, LayoutBox* child, const CollapsedBorderValue& currentBorderValue, ItemToPai
nt); |
| 33 |
26 const LayoutTable& m_layoutTable; | 34 const LayoutTable& m_layoutTable; |
27 }; | 35 }; |
28 | 36 |
29 } // namespace blink | 37 } // namespace blink |
30 | 38 |
31 #endif // TablePainter_h | 39 #endif // TablePainter_h |
OLD | NEW |