OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef TableCellPainter_h |
| 6 #define TableCellPainter_h |
| 7 |
| 8 #include "core/rendering/style/CollapsedBorderValue.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 struct PaintInfo; |
| 13 class LayoutPoint; |
| 14 class RenderObject; |
| 15 class RenderStyle; |
| 16 class RenderTableCell; |
| 17 |
| 18 class TableCellPainter { |
| 19 public: |
| 20 TableCellPainter(RenderTableCell& renderTableCell) : m_renderTableCell(rende
rTableCell) { } |
| 21 |
| 22 void paint(PaintInfo&, const LayoutPoint&); |
| 23 |
| 24 void paintCollapsedBorders(PaintInfo&, const LayoutPoint&); |
| 25 void paintBackgroundsBehindCell(PaintInfo&, const LayoutPoint&, RenderObject
* backgroundObject); |
| 26 void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint& paintOffset
); |
| 27 void paintMask(PaintInfo&, const LayoutPoint& paintOffset); |
| 28 |
| 29 private: |
| 30 CollapsedBorderValue cachedCollapsedLeftBorder(const RenderStyle*) const; |
| 31 CollapsedBorderValue cachedCollapsedRightBorder(const RenderStyle*) const; |
| 32 CollapsedBorderValue cachedCollapsedTopBorder(const RenderStyle*) const; |
| 33 CollapsedBorderValue cachedCollapsedBottomBorder(const RenderStyle*) const; |
| 34 |
| 35 RenderTableCell& m_renderTableCell; |
| 36 }; |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif // TableCellPainter_h |
OLD | NEW |