Bug 799165 - Don't revoke a view manager flush on PresShell destruction if we don't own the refresh driver. r=roc

This commit is contained in:
Matt Woodrow 2012-11-09 19:21:45 +13:00
parent 899abd3ff8
commit 189a77c698

View File

@ -1062,7 +1062,9 @@ PresShell::Destroy()
mHiddenInvalidationObserverRefreshDriver->RemovePresShellToInvalidateIfHidden(this);
}
rd->RevokeViewManagerFlush();
if (rd->PresContext() == GetPresContext()) {
rd->RevokeViewManagerFlush();
}
mResizeEvent.Revoke();
if (mAsyncResizeTimerIsActive) {