mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1022612. Part 18: When ComputeVisibility returns false, RecomputeVisibility should avoid painting the item. r=mattwoodrow
--HG-- extra : rebase_source : 31e8a9ff9419b4aca2743d41db74b5271aae32bf
This commit is contained in:
parent
93aa1d7155
commit
18ccbbdbaa
@ -1743,8 +1743,10 @@ nsDisplayItem::RecomputeVisibility(nsDisplayListBuilder* aBuilder,
|
||||
// When we recompute visibility within layers we don't need to
|
||||
// expand the visible region for content behind plugins (the plugin
|
||||
// is not in the layer).
|
||||
if (!ComputeVisibility(aBuilder, aVisibleRegion, nsRect()))
|
||||
if (!ComputeVisibility(aBuilder, aVisibleRegion, nsRect())) {
|
||||
mVisibleRect = nsRect();
|
||||
return false;
|
||||
}
|
||||
|
||||
nsRegion opaque = TreatAsOpaque(this, aBuilder);
|
||||
aBuilder->SubtractFromVisibleRegion(aVisibleRegion, opaque);
|
||||
|
Loading…
Reference in New Issue
Block a user