Address my own review comment: Restore IsTransparent() check, which should restore old behavior for background-images when printing backgrounds is disabled. (Bug 456219) r=zwol

This commit is contained in:
L. David Baron 2009-01-10 08:37:01 -08:00
Родитель aefe9fb399
Коммит 1a022d37d8
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1315,7 +1315,7 @@ nsCSSRendering::PaintBackgroundWithSC(nsPresContext* aPresContext,
drawBackgroundColor = PR_FALSE; drawBackgroundColor = PR_FALSE;
} else { } else {
bgColor = NS_RGB(255, 255, 255); bgColor = NS_RGB(255, 255, 255);
if (drawBackgroundImage || NS_GET_A(aColor.mBackgroundColor) > 0) if (drawBackgroundImage || !aColor.IsTransparent())
drawBackgroundColor = PR_TRUE; drawBackgroundColor = PR_TRUE;
} }