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

This commit is contained in:
Tobias Schneider 2016-03-08 09:44:00 +01:00
Родитель af80c17051
Коммит f8e31827b6
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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();
}