mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
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:
parent
a050d64ee4
commit
d7bc72df94
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user