| 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" | |
| 9 #include "core/style/ShadowData.h" | |
| 10 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
| 11 | 9 |
| 12 namespace blink { | 10 namespace blink { |
| 13 | 11 |
| 12 class LayoutPoint; |
| 13 class LayoutTableCell; |
| 14 class LayoutTableRow; |
| 15 struct PaintInfo; |
| 16 |
| 14 class TableRowPainter { | 17 class TableRowPainter { |
| 15 STACK_ALLOCATED(); | 18 STACK_ALLOCATED(); |
| 16 public: | 19 public: |
| 17 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay
outTableRow) { } | 20 TableRowPainter(const LayoutTableRow& layoutTableRow) : m_layoutTableRow(lay
outTableRow) { } |
| 18 | 21 |
| 19 void paint(const PaintInfo&, const LayoutPoint&); | 22 void paint(const PaintInfo&, const LayoutPoint&); |
| 20 void paintOutline(const PaintInfo&, const LayoutPoint&); | 23 void paintOutline(const PaintInfo&, const LayoutPoint&); |
| 21 void paintBackgroundBehindCell(const LayoutTableCell&, const PaintInfo&, con
st LayoutPoint&); | 24 void paintBackgroundBehindCell(const LayoutTableCell&, const PaintInfo&, con
st LayoutPoint&); |
| 22 | 25 |
| 23 private: | 26 private: |
| 24 const LayoutTableRow& m_layoutTableRow; | 27 const LayoutTableRow& m_layoutTableRow; |
| 25 }; | 28 }; |
| 26 | 29 |
| 27 } // namespace blink | 30 } // namespace blink |
| 28 | 31 |
| 29 #endif // TableRowPainter_h | 32 #endif // TableRowPainter_h |
| OLD | NEW |