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

Unified Diff: third_party/WebKit/Source/core/paint/TableSectionPainter.cpp

Issue 2225033003: Separate backgroundObscurationStatus and hasBoxDecorationBackground (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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/TableSectionPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
index e1534bc61efca9ee9b6c9a575602ebd4994c4754..578dc24a1749dad5cc67a70b3c813fe729064d10 100644
--- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
@@ -189,7 +189,7 @@ void TableSectionPainter::paintObject(const PaintInfo& paintInfo, const LayoutPo
TableRowPainter rowPainter(*row);
rowPainter.paintBoxShadow(paintInfoForDescendants, paintOffset, Normal);
- if (row->hasBackground()) {
+ if (row->styleRef().hasBackground()) {
for (unsigned c = dirtiedColumns.start(); c < dirtiedColumns.end(); c++) {
if (const LayoutTableCell* cell = primaryCellToPaint(r, c, dirtiedRows, dirtiedColumns))
rowPainter.paintBackgroundBehindCell(*cell, paintInfoForDescendants, paintOffset);
@@ -267,13 +267,13 @@ void TableSectionPainter::paintBackgroundsBehindCell(const LayoutTableCell& cell
// the stack, since we have already opened a transparency layer (potentially) for the table row group.
// Note that we deliberately ignore whether or not the cell has a layer, since these backgrounds paint "behind" the
// cell.
- if (columnGroup && columnGroup->hasBackground())
+ if (columnGroup && columnGroup->styleRef().hasBackground())
tableCellPainter.paintContainerBackgroundBehindCell(paintInfoForCells, cellPoint, *columnGroup, DisplayItem::TableCellBackgroundFromColumnGroup);
- if (column && column->hasBackground())
+ if (column && column->styleRef().hasBackground())
tableCellPainter.paintContainerBackgroundBehindCell(paintInfoForCells, cellPoint, *column, DisplayItem::TableCellBackgroundFromColumn);
// Paint the row group next.
- if (m_layoutTableSection.hasBackground())
+ if (m_layoutTableSection.styleRef().hasBackground())
tableCellPainter.paintContainerBackgroundBehindCell(paintInfoForCells, cellPoint, m_layoutTableSection, DisplayItem::TableCellBackgroundFromSection);
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableRowPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698