From bcd6c96aecfd49bca6f4f66a9dc40b4e1683aa85 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sun, 2 Feb 2020 11:31:07 +0100 Subject: Issue #1378 - Follow-up: make sure background items remain table-aligned. --- layout/tables/nsTableFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layout') diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp index 891d7e7cd..db6e31e2b 100644 --- a/layout/tables/nsTableFrame.cpp +++ b/layout/tables/nsTableFrame.cpp @@ -1319,7 +1319,7 @@ nsTableFrame::DisplayGenericTablePart(nsDisplayListBuilder* aBuilder, col->GetTableColGroupFrame()->GetNormalPosition(); PaintRowGroupBackgroundByColIdx(rowGroup, aFrame, aBuilder, aLists, colIdx, offset); } - } else { + } else if (isVisible) { nsDisplayBackgroundImage::AppendBackgroundItemsToTop(aBuilder, aFrame, aFrame->GetRectRelativeToSelf(), aLists.BorderBackground()); -- cgit v1.2.3