Bug 1209273 - Part 2: Force printing background if color-adjust: exact. r=dbaron

--HG--
extra : rebase_source : d244c149e2b5e79082b77864fc7b6aaa912a687d
This commit is contained in:
Tobias Schneider 2016-03-08 09:44:00 -05:00
parent 9cfd13fa3d
commit 74df504068

View File

@ -1985,7 +1985,10 @@ nsCSSRendering::DetermineBackgroundColor(nsPresContext* aPresContext,
aDrawBackgroundImage = true;
aDrawBackgroundColor = true;
if (aFrame->HonorPrintBackgroundSettings()) {
const nsStyleVisibility* visibility = aStyleContext->StyleVisibility();
if (visibility->mColorAdjust != NS_STYLE_COLOR_ADJUST_EXACT &&
aFrame->HonorPrintBackgroundSettings()) {
aDrawBackgroundImage = aPresContext->GetBackgroundImageDraw();
aDrawBackgroundColor = aPresContext->GetBackgroundColorDraw();
}