diff options
Diffstat (limited to 'layout/style')
-rw-r--r-- | layout/style/FontFaceImpl.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/layout/style/FontFaceImpl.cpp b/layout/style/FontFaceImpl.cpp index cb25bec954..30f16e4be8 100644 --- a/layout/style/FontFaceImpl.cpp +++ b/layout/style/FontFaceImpl.cpp @@ -351,14 +351,6 @@ void FontFaceImpl::DoLoad() { if (!CreateUserFontEntry()) { return; } - - if (!NS_IsMainThread()) { - NS_DispatchToMainThread(NS_NewRunnableFunction( - "FontFaceImpl::DoLoad", - [entry = RefPtr{mUserFontEntry}]() { entry->Load(); })); - return; - } - mUserFontEntry->Load(); } |