| 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 TableCellPainter_h | 5 #ifndef TableCellPainter_h |
| 6 #define TableCellPainter_h | 6 #define TableCellPainter_h |
| 7 | 7 |
| 8 #include "core/style/CollapsedBorderValue.h" | 8 #include "core/style/CollapsedBorderValue.h" |
| 9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 void paintBackgroundsBehindCell(const PaintInfo&, const LayoutPoint&, const
LayoutObject* backgroundObject, DisplayItem::Type); | 30 void paintBackgroundsBehindCell(const PaintInfo&, const LayoutPoint&, const
LayoutObject* backgroundObject, DisplayItem::Type); |
| 31 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paint
Offset); | 31 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paint
Offset); |
| 32 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset); | 32 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset); |
| 33 | 33 |
| 34 enum PaintBoundOffsetBehavior { AddOffsetFromParent, DoNotAddOffsetFromParen
t }; | 34 enum PaintBoundOffsetBehavior { AddOffsetFromParent, DoNotAddOffsetFromParen
t }; |
| 35 // Returns the bonds of the table cell for painting, offset by paintOffset,
and if desired, the offset from the cell | 35 // Returns the bonds of the table cell for painting, offset by paintOffset,
and if desired, the offset from the cell |
| 36 // to its parent. | 36 // to its parent. |
| 37 LayoutRect paintBounds(const LayoutPoint& paintOffset, PaintBoundOffsetBehav
ior); | 37 LayoutRect paintBounds(const LayoutPoint& paintOffset, PaintBoundOffsetBehav
ior); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 const CollapsedBorderValue& cachedCollapsedLeftBorder(const ComputedStyle&)
const; | |
| 41 const CollapsedBorderValue& cachedCollapsedRightBorder(const ComputedStyle&)
const; | |
| 42 const CollapsedBorderValue& cachedCollapsedTopBorder(const ComputedStyle&) c
onst; | |
| 43 const CollapsedBorderValue& cachedCollapsedBottomBorder(const ComputedStyle&
) const; | |
| 44 | |
| 45 const LayoutTableCell& m_layoutTableCell; | 40 const LayoutTableCell& m_layoutTableCell; |
| 46 }; | 41 }; |
| 47 | 42 |
| 48 } // namespace blink | 43 } // namespace blink |
| 49 | 44 |
| 50 #endif // TableCellPainter_h | 45 #endif // TableCellPainter_h |
| OLD | NEW |