зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
156ed98b00
Коммит
aca9d6bdcb
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче