summaryrefslogtreecommitdiffstats
path: root/layout/style/FontFaceImpl.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:18:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:18:09 +0000
commit0cd6f26b6b8fcec2b43398fd831f6b9e0cb977e3 (patch)
tree673eec8dca4c4cfc5125dd4447f6608e589fa6b9 /layout/style/FontFaceImpl.cpp
parentAdding debian version 115.8.0esr-1~deb12u1. (diff)
downloadfirefox-esr-0cd6f26b6b8fcec2b43398fd831f6b9e0cb977e3.tar.xz
firefox-esr-0cd6f26b6b8fcec2b43398fd831f6b9e0cb977e3.zip
Merging upstream version 115.9.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/style/FontFaceImpl.cpp')
-rw-r--r--layout/style/FontFaceImpl.cpp8
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();
}