mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Backed out changeset f89950384bf2 (bug 1022612)
This commit is contained in:
parent
f43cac8d8b
commit
95251d074c
@ -1096,6 +1096,7 @@ nsDisplayList::ComputeVisibilityForSublist(nsDisplayListBuilder* aBuilder,
|
||||
"bad aListVisibleBounds");
|
||||
#endif
|
||||
|
||||
mVisibleRect = aListVisibleBounds;
|
||||
bool anyVisible = false;
|
||||
|
||||
nsAutoTArray<nsDisplayItem*, 512> elements;
|
||||
@ -1120,7 +1121,7 @@ nsDisplayList::ComputeVisibilityForSublist(nsDisplayListBuilder* aBuilder,
|
||||
AppendToBottom(item);
|
||||
}
|
||||
|
||||
mIsOpaque = !aVisibleRegion->Intersects(aListVisibleBounds);
|
||||
mIsOpaque = !aVisibleRegion->Intersects(mVisibleRect);
|
||||
return anyVisible;
|
||||
}
|
||||
|
||||
|
@ -1680,6 +1680,8 @@ public:
|
||||
mForceTransparentSurface = true;
|
||||
}
|
||||
|
||||
nsRect GetVisibleRect() const { return mVisibleRect; }
|
||||
|
||||
private:
|
||||
// This class is only used on stack, so we don't have to worry about leaking
|
||||
// it. Don't let us be heap-allocated!
|
||||
@ -1688,6 +1690,8 @@ private:
|
||||
nsDisplayItemLink mSentinel;
|
||||
nsDisplayItemLink* mTop;
|
||||
|
||||
// This is set by ComputeVisibility
|
||||
nsRect mVisibleRect;
|
||||
// This is set to true by ComputeVisibility if the final visible region
|
||||
// is empty (i.e. everything that was visible is covered by some
|
||||
// opaque content in this list).
|
||||
|
Loading…
Reference in New Issue
Block a user