icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -18,40 +18,29 @@ namespace mozilla {
|
|||
|
||||
using namespace dom;
|
||||
|
||||
PostTraversalTask::~PostTraversalTask() {
|
||||
if (!mTarget) {
|
||||
return;
|
||||
}
|
||||
switch (mType) {
|
||||
case Type::DispatchLoadingEventAndReplaceReadyPromise:
|
||||
static_cast<dom::FontFaceSetImpl*>(mTarget)->Release();
|
||||
break;
|
||||
case Type::LoadFontEntry:
|
||||
static_cast<gfxUserFontEntry*>(mTarget)->Release();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void PostTraversalTask::Run() {
|
||||
switch (mType) {
|
||||
case Type::ResolveFontFaceLoadedPromise:
|
||||
static_cast<FontFace*>(mTarget)->MaybeResolve();
|
||||
break;
|
||||
|
||||
case Type::RejectFontFaceLoadedPromise:
|
||||
static_cast<FontFace*>(mTarget)->MaybeReject(mResult);
|
||||
break;
|
||||
|
||||
case Type::DispatchLoadingEventAndReplaceReadyPromise:
|
||||
static_cast<FontFaceSet*>(mTarget)
|
||||
static_cast<dom::FontFaceSetImpl*>(mTarget)
|
||||
->DispatchLoadingEventAndReplaceReadyPromise();
|
||||
break;
|
||||
|
||||
case Type::DispatchFontFaceSetCheckLoadingFinishedAfterDelay:
|
||||
static_cast<FontFaceSetImpl*>(mTarget)
|
||||
->DispatchCheckLoadingFinishedAfterDelay();
|
||||
break;
|
||||
|
||||
case Type::LoadFontEntry:
|
||||
static_cast<gfxUserFontEntry*>(mTarget)->ContinueLoad();
|
||||
break;
|
||||
|
||||
case Type::InitializeFamily:
|
||||
Unused << gfxPlatformFontList::PlatformFontList()->InitializeFamily(
|
||||
static_cast<fontlist::Family*>(mTarget));
|
||||
break;
|
||||
|
||||
case Type::FontInfoUpdate:
|
||||
if (auto* pc = static_cast<ServoStyleSet*>(mTarget)->GetPresContext()) {
|
||||
pc->ForceReflowForFontInfoUpdateFromStyle();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue