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 TableCellPainter_h | 5 #ifndef TableCellPainter_h |
6 #define TableCellPainter_h | 6 #define TableCellPainter_h |
7 | 7 |
8 #include "core/style/CollapsedBorderValue.h" | 8 #include "core/style/CollapsedBorderValue.h" |
9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 struct PaintInfo; | 14 struct PaintInfo; |
15 class CollapsedBorderValue; | 15 class CollapsedBorderValue; |
16 class LayoutPoint; | 16 class LayoutPoint; |
17 class LayoutRect; | 17 class LayoutRect; |
18 class LayoutTableCell; | 18 class LayoutTableCell; |
19 class LayoutObject; | 19 class LayoutObject; |
20 class ComputedStyle; | |
21 | 20 |
22 class TableCellPainter { | 21 class TableCellPainter { |
23 STACK_ALLOCATED(); | 22 STACK_ALLOCATED(); |
24 | 23 |
25 public: | 24 public: |
26 TableCellPainter(const LayoutTableCell& layoutTableCell) | 25 TableCellPainter(const LayoutTableCell& layoutTableCell) |
27 : m_layoutTableCell(layoutTableCell) {} | 26 : m_layoutTableCell(layoutTableCell) {} |
28 | 27 |
29 void paint(const PaintInfo&, const LayoutPoint&); | 28 void paint(const PaintInfo&, const LayoutPoint&); |
30 | 29 |
(...skipping 15 matching lines...) Expand all Loading... |
46 void paintBackground(const PaintInfo&, | 45 void paintBackground(const PaintInfo&, |
47 const LayoutRect&, | 46 const LayoutRect&, |
48 const LayoutObject& backgroundObject); | 47 const LayoutObject& backgroundObject); |
49 | 48 |
50 const LayoutTableCell& m_layoutTableCell; | 49 const LayoutTableCell& m_layoutTableCell; |
51 }; | 50 }; |
52 | 51 |
53 } // namespace blink | 52 } // namespace blink |
54 | 53 |
55 #endif // TableCellPainter_h | 54 #endif // TableCellPainter_h |
OLD | NEW |