Loading gfx/thebes/gfxUserFontSet.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "mozilla/gfx/2D.h" #include "gfxPlatformFontList.h" #include "mozilla/PostTraversalTask.h" #include "mozilla/dom/WorkerCommon.h" #include "gfxOTSUtils.h" #include "nsIFontLoadCompleteCallback.h" #include "nsProxyRelease.h" Loading Loading @@ -789,7 +790,7 @@ void gfxUserFontEntry::Load() { if (mUserFontLoadState != STATUS_NOT_LOADED) { return; } if (!NS_IsMainThread()) { if (dom::IsCurrentThreadRunningWorker()) { // TODO: Maybe support loading the font entry in workers, at least for // buffers or other sync sources? NS_DispatchToMainThread(NewRunnableMethod("gfxUserFontEntry::Load", this, Loading Loading
gfx/thebes/gfxUserFontSet.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "mozilla/gfx/2D.h" #include "gfxPlatformFontList.h" #include "mozilla/PostTraversalTask.h" #include "mozilla/dom/WorkerCommon.h" #include "gfxOTSUtils.h" #include "nsIFontLoadCompleteCallback.h" #include "nsProxyRelease.h" Loading Loading @@ -789,7 +790,7 @@ void gfxUserFontEntry::Load() { if (mUserFontLoadState != STATUS_NOT_LOADED) { return; } if (!NS_IsMainThread()) { if (dom::IsCurrentThreadRunningWorker()) { // TODO: Maybe support loading the font entry in workers, at least for // buffers or other sync sources? NS_DispatchToMainThread(NewRunnableMethod("gfxUserFontEntry::Load", this, Loading