зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357327 - use ImgIRequest.boostPriority for increasing loading priority in nsImageFrame::Init. r=tnikkel
MozReview-Commit-ID: IpTZeMzllTZ --HG-- extra : rebase_source : 32ead6461da653c8bc703d006d839395a8078387
This commit is contained in:
Родитель
df9bdb3816
Коммит
87439de51d
|
@ -283,9 +283,10 @@ nsImageFrame::Init(nsIContent* aContent,
|
|||
nsCOMPtr<imgIRequest> currentRequest;
|
||||
imageLoader->GetRequest(nsIImageLoadingContent::CURRENT_REQUEST,
|
||||
getter_AddRefs(currentRequest));
|
||||
nsCOMPtr<nsISupportsPriority> p = do_QueryInterface(currentRequest);
|
||||
if (p)
|
||||
p->AdjustPriority(-1);
|
||||
|
||||
if (currentRequest) {
|
||||
currentRequest->BoostPriority(imgIRequest::CATEGORY_FRAME_INIT);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Загрузка…
Ссылка в новой задаче