| 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/style/ShadowData.h" | 8 #include "core/style/ShadowData.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class CellSpan; |
| 13 class LayoutPoint; | 14 class LayoutPoint; |
| 14 class LayoutTableCell; | 15 class LayoutTableCell; |
| 15 class LayoutTableRow; | 16 class LayoutTableRow; |
| 16 struct PaintInfo; | 17 struct PaintInfo; |
| 17 | 18 |
| 18 class TableRowPainter { | 19 class TableRowPainter { |
| 19 STACK_ALLOCATED(); | 20 STACK_ALLOCATED(); |
| 20 | 21 |
| 21 public: | 22 public: |
| 22 TableRowPainter(const LayoutTableRow& layoutTableRow) | 23 TableRowPainter(const LayoutTableRow& layoutTableRow) |
| 23 : m_layoutTableRow(layoutTableRow) {} | 24 : m_layoutTableRow(layoutTableRow) {} |
| 24 | 25 |
| 25 void paint(const PaintInfo&, const LayoutPoint&); | 26 void paint(const PaintInfo&, const LayoutPoint&); |
| 26 void paintOutline(const PaintInfo&, const LayoutPoint&); | 27 void paintOutline(const PaintInfo&, const LayoutPoint&); |
| 27 void paintBoxShadow(const PaintInfo&, const LayoutPoint&, ShadowStyle); | 28 void paintBoxDecorationBackground(const PaintInfo&, |
| 29 const LayoutPoint&, |
| 30 const CellSpan& dirtiedColumns); |
| 31 |
| 32 private: |
| 28 void paintBackgroundBehindCell(const LayoutTableCell&, | 33 void paintBackgroundBehindCell(const LayoutTableCell&, |
| 29 const PaintInfo&, | 34 const PaintInfo&, |
| 30 const LayoutPoint&); | 35 const LayoutPoint&); |
| 31 | 36 |
| 32 private: | |
| 33 const LayoutTableRow& m_layoutTableRow; | 37 const LayoutTableRow& m_layoutTableRow; |
| 34 }; | 38 }; |
| 35 | 39 |
| 36 } // namespace blink | 40 } // namespace blink |
| 37 | 41 |
| 38 #endif // TableRowPainter_h | 42 #endif // TableRowPainter_h |
| OLD | NEW |