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 TableRowPainter_h | 5 #ifndef TableRowPainter_h |
6 #define TableRowPainter_h | 6 #define TableRowPainter_h |
7 | 7 |
8 #include "core/layout/LayoutTableRow.h" | 8 #include "core/layout/LayoutTableRow.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 |
13 class TableRowPainter { | 14 class TableRowPainter { |
14 STACK_ALLOCATED(); | 15 STACK_ALLOCATED(); |
15 public: | 16 public: |
16 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay outTableRow) { } | 17 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay outTableRow) { } |
17 | 18 |
18 void paint(const PaintInfo&, const LayoutPoint&); | 19 void paint(const PaintInfo&, const LayoutPoint&); |
19 void paintOutlineForRowIfNeeded(const PaintInfo&, const LayoutPoint&); | 20 void paintOutline(const PaintInfo&, const LayoutPoint&); |
21 void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle); | |
22 void paintBackgroundBehindCell(const LayoutTableCell&, const PaintInfo&, con st LayoutPoint&); | |
chrishtr
2016/05/14 18:03:46
Doesn't a cell know its row? Why is this method no
| |
20 | 23 |
21 private: | 24 private: |
22 const LayoutTableRow& m_layoutTableRow; | 25 const LayoutTableRow& m_layoutTableRow; |
23 }; | 26 }; |
24 | 27 |
25 } // namespace blink | 28 } // namespace blink |
26 | 29 |
27 #endif // TableRowPainter_h | 30 #endif // TableRowPainter_h |
OLD | NEW |