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
parent e84f7f11b1
commit f493486819

View File

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