LibGfx+LibWeb: Store Typeface and Font-related types in RefPtr to const

This commit is contained in:
Andrew Kaster 2025-04-15 15:48:14 -06:00 committed by Andrew Kaster
parent ffd0259bef
commit be2dd91289
Notes: github-actions[bot] 2025-04-16 16:44:15 +00:00
13 changed files with 28 additions and 28 deletions

View file

@ -27,9 +27,9 @@
namespace Web::CSS {
static NonnullRefPtr<Core::Promise<NonnullRefPtr<Gfx::Typeface>>> load_vector_font(JS::Realm& realm, ByteBuffer const& data)
static NonnullRefPtr<Core::Promise<NonnullRefPtr<Gfx::Typeface const>>> load_vector_font(JS::Realm& realm, ByteBuffer const& data)
{
auto promise = Core::Promise<NonnullRefPtr<Gfx::Typeface>>::construct();
auto promise = Core::Promise<NonnullRefPtr<Gfx::Typeface const>>::construct();
// FIXME: 'Asynchronously' shouldn't mean 'later on the main thread'.
// Can we defer this to a background thread?