Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/TableCellPainter.h |
| diff --git a/third_party/WebKit/Source/core/paint/TableCellPainter.h b/third_party/WebKit/Source/core/paint/TableCellPainter.h |
| index e195120e90fcc1008955e2c58dbd3bd91fb386a6..b6211e9ac391a714a304996562aa194027ea45c4 100644 |
| --- a/third_party/WebKit/Source/core/paint/TableCellPainter.h |
| +++ b/third_party/WebKit/Source/core/paint/TableCellPainter.h |
| @@ -13,6 +13,7 @@ namespace blink { |
| struct PaintInfo; |
| class CollapsedBorderValue; |
| +class LayoutBox; |
| class LayoutPoint; |
| class LayoutRect; |
| class LayoutTableCell; |
| @@ -27,7 +28,7 @@ public: |
| void paint(const PaintInfo&, const LayoutPoint&); |
| void paintCollapsedBorders(const PaintInfo&, const LayoutPoint&, const CollapsedBorderValue&); |
| - void paintBackgroundsBehindCell(const PaintInfo&, const LayoutPoint&, const LayoutObject* backgroundObject, DisplayItem::Type); |
| + void paintBackgroundsBehindCell(const PaintInfo&, const LayoutPoint&, const LayoutBox* backgroundObject, DisplayItem::Type); |
| void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paintOffset); |
| void paintMask(const PaintInfo&, const LayoutPoint& paintOffset); |
| @@ -36,6 +37,11 @@ public: |
| // to its parent. |
| LayoutRect paintBounds(const LayoutPoint& paintOffset, PaintBoundOffsetBehavior); |
| + void paintParentBackgroundsBehindCell(const PaintInfo&, const LayoutPoint&, const LayoutBox* backgroundObject, DisplayItem::Type); |
|
Xianzhu
2016/03/28 00:44:43
1. Make it private.
2. backgroundObject should be
atotic1
2016/03/29 17:05:17
Done. Modified the old routine to accept const Lay
|
| + |
| + // Computed bounds for parent background objects. |
| + LayoutRect paintBoundsParent(const LayoutPoint& paintOffset, const LayoutBox*, DisplayItem::Type); |
|
Xianzhu
2016/03/28 00:44:43
Make it private.
atotic1
2016/03/29 17:05:17
Done.
|
| + |
| private: |
| const CollapsedBorderValue* cachedCollapsedLeftBorder(const ComputedStyle&) const; |
| const CollapsedBorderValue* cachedCollapsedRightBorder(const ComputedStyle&) const; |