зеркало из https://github.com/mozilla/gecko-dev.git
Bug 788959 - Clear the listener associated with cancelled bullet frame image requests. r=bz a=akeybl
This commit is contained in:
Родитель
f851d3f050
Коммит
94ec6b99dc
|
@ -119,7 +119,7 @@ nsBulletFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
|
|||
} else {
|
||||
nsLayoutUtils::DeregisterImageRequest(PresContext(), mImageRequest,
|
||||
&mRequestRegistered);
|
||||
mImageRequest->Cancel(NS_ERROR_FAILURE);
|
||||
mImageRequest->CancelAndForgetObserver(NS_ERROR_FAILURE);
|
||||
mImageRequest = nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ nsBulletFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
|
|||
nsLayoutUtils::DeregisterImageRequest(PresContext(), mImageRequest,
|
||||
&mRequestRegistered);
|
||||
|
||||
mImageRequest->Cancel(NS_ERROR_FAILURE);
|
||||
mImageRequest->CancelAndForgetObserver(NS_ERROR_FAILURE);
|
||||
mImageRequest = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче