| Index: third_party/WebKit/Source/core/paint/TableCellPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/TableCellPainter.cpp b/third_party/WebKit/Source/core/paint/TableCellPainter.cpp
|
| index 2b0f09b543e3c36139e80da8191fc6b358fb4569..c6372e500b97001ce68ee42e1abf060f151e5c78 100644
|
| --- a/third_party/WebKit/Source/core/paint/TableCellPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/TableCellPainter.cpp
|
| @@ -66,7 +66,7 @@
|
|
|
| void TableCellPainter::paintCollapsedBorders(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const CollapsedBorderValue& currentBorderValue)
|
| {
|
| - if (m_layoutTableCell.style()->visibility() != VISIBLE)
|
| + if (!paintInfo.shouldPaintWithinRoot(&m_layoutTableCell) || m_layoutTableCell.style()->visibility() != VISIBLE)
|
| return;
|
|
|
| const ComputedStyle& styleForCellFlow = m_layoutTableCell.styleForCellFlow();
|
| @@ -133,6 +133,9 @@
|
|
|
| void TableCellPainter::paintBackgroundsBehindCell(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const LayoutObject* backgroundObject, DisplayItem::Type type)
|
| {
|
| + if (!paintInfo.shouldPaintWithinRoot(&m_layoutTableCell))
|
| + return;
|
| +
|
| if (!backgroundObject)
|
| return;
|
|
|
| @@ -174,6 +177,9 @@
|
|
|
| void TableCellPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| {
|
| + if (!paintInfo.shouldPaintWithinRoot(&m_layoutTableCell))
|
| + return;
|
| +
|
| LayoutTable* table = m_layoutTableCell.table();
|
| if (!table->collapseBorders() && m_layoutTableCell.style()->emptyCells() == HIDE && !m_layoutTableCell.firstChild())
|
| return;
|
|
|