Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Unified Diff: third_party/WebKit/Source/core/paint/TableCellPainter.h

Issue 1676933004: Table cell background painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: colgroup paint bug125336 fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ab1bb32818a99070d9a894b7fc2244f89b018cb7 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,14 +28,14 @@ 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);
enum PaintBoundOffsetBehavior { AddOffsetFromParent, DoNotAddOffsetFromParent };
// Returns the bonds of the table cell for painting, offset by paintOffset, and if desired, the offset from the cell
// to its parent.
- LayoutRect paintBounds(const LayoutPoint& paintOffset, PaintBoundOffsetBehavior);
+ LayoutRect paintBounds(const LayoutPoint& paintOffset, PaintBoundOffsetBehavior, const LayoutBox* = nullptr, DisplayItem::Type = DisplayItem::UninitializedType);
private:
const CollapsedBorderValue* cachedCollapsedLeftBorder(const ComputedStyle&) const;

Powered by Google App Engine
This is Rietveld 408576698