зеркало из https://github.com/mozilla/gecko-dev.git
bug 895700 - load user fonts at high priority r=roc
--HG-- extra : rebase_source : ed695dd11ed294b5000e53a3523d83ef44853c2b
This commit is contained in:
Родитель
22a3dd902f
Коммит
4f441f5d46
|
@ -29,6 +29,7 @@
|
|||
#include "nsIContentSecurityPolicy.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsISupportsPriority.h"
|
||||
#include "nsINetworkSeer.h"
|
||||
|
||||
#include "nsIConsoleService.h"
|
||||
|
@ -373,6 +374,11 @@ nsUserFontSet::StartLoad(gfxMixedFontFamily* aFamily,
|
|||
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
|
||||
if (httpChannel)
|
||||
httpChannel->SetReferrer(aFontFaceSrc->mReferrer);
|
||||
nsCOMPtr<nsISupportsPriority> priorityChannel(do_QueryInterface(channel));
|
||||
if (priorityChannel) {
|
||||
priorityChannel->AdjustPriority(nsISupportsPriority::PRIORITY_HIGH);
|
||||
}
|
||||
|
||||
rv = NS_NewStreamLoader(getter_AddRefs(streamLoader), fontLoader);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче