Backed out changeset f89950384bf2 (bug 1022612)

This commit is contained in:
Carsten "Tomcat" Book 2014-07-15 10:30:13 +02:00
parent f43cac8d8b
commit 95251d074c
2 changed files with 6 additions and 1 deletions

View File

@ -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;
}

View File

@ -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).