Chromium Code Reviews| 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 paintBackgroundBehindCell(const LayoutTableCell&, const PaintInfo&, con st LayoutPoint&); | |
|
Xianzhu
2016/05/16 21:47:53
It calls TableCellPainter::paintContainerBackgroun
| |
| 20 | 22 |
| 21 private: | 23 private: |
| 22 const LayoutTableRow& m_layoutTableRow; | 24 const LayoutTableRow& m_layoutTableRow; |
| 23 }; | 25 }; |
| 24 | 26 |
| 25 } // namespace blink | 27 } // namespace blink |
| 26 | 28 |
| 27 #endif // TableRowPainter_h | 29 #endif // TableRowPainter_h |
| OLD | NEW |