Commit 4d17020d authored by chrishtr's avatar chrishtr Committed by Commit bot

Don't paint the stolen background of the body even when it has display:table-cell.

BUG=622795

Review-Url: https://codereview.chromium.org/2133803003
Cr-Commit-Position: refs/heads/master@{#404529}
parent 6c799c44
<!DOCTYPE html>
<style>
html { background: url(../invalidation/resources/bluesquare.png) }
</style>
<!DOCTYPE html>
<!-- The document shoudl be entirely blue. The red background on the 20x20-sized body should not appear. -->
<style>
body { display:table-cell; vertical-align:middle; background:red url(../invalidation/resources/bluesquare.png) }
</style>
<body style="width: 20px; height: 20px"></body>
......@@ -151,6 +151,9 @@ void TableCellPainter::paintContainerBackgroundBehindCell(const PaintInfo& paint
void TableCellPainter::paintBackground(const PaintInfo& paintInfo, const LayoutRect& paintRect, const LayoutObject& backgroundObject)
{
if (m_layoutTableCell.backgroundStolenForBeingBody())
return;
Color c = backgroundObject.resolveColor(CSSPropertyBackgroundColor);
const FillLayer& bgLayer = backgroundObject.styleRef().backgroundLayers();
if (bgLayer.hasImage() || c.alpha()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment