Bug 615714. When computing visibility of display lists we don't need a underlying frame to consider items opaque. r=roc a=bzbarsky

This commit is contained in:
Timothy Nikkel 2010-12-09 22:33:34 -06:00
parent a050d64ee4
commit d7bc72df94

View File

@ -360,9 +360,8 @@ nsDisplayList::ComputeVisibilityForSublist(nsDisplayListBuilder* aBuilder,
if (item->ComputeVisibility(aBuilder, aVisibleRegion)) {
anyVisible = PR_TRUE;
nsIFrame* f = item->GetUnderlyingFrame();
PRBool transparentBackground = PR_FALSE;
if (TreatAsOpaque(item, aBuilder, &transparentBackground) && f) {
if (TreatAsOpaque(item, aBuilder, &transparentBackground)) {
// Subtract opaque item from the visible region
aBuilder->SubtractFromVisibleRegion(aVisibleRegion, nsRegion(bounds));
}