Bug 276431 patch 12b: Allow "UnsuppressPainting" call to be effective in resource documents, by disabling EnsureVisible check. r=roc a=blocking

This commit is contained in:
Daniel Holbert 2010-09-08 13:40:39 -07:00
parent d402e9cca0
commit def5d6741d

View File

@ -4528,7 +4528,10 @@ PresShell::CaptureHistoryState(nsILayoutHistoryState** aState, PRBool aLeavingPa
void
PresShell::UnsuppressAndInvalidate()
{
if (!mPresContext->EnsureVisible() || mHaveShutDown) {
// Note: We ignore the EnsureVisible check for resource documents, because
// they won't have a docshell, so they'll always fail EnsureVisible.
if ((!mDocument->IsResourceDoc() && !mPresContext->EnsureVisible()) ||
mHaveShutDown) {
// No point; we're about to be torn down anyway.
return;
}