зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
aefe9fb399
Коммит
1a022d37d8
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче