[gfx] Hold a stronger reference to gfxFontEntry.

This commit is contained in:
Moonchild 2025-07-23 14:34:41 +02:00 • committed by roytam1
commit 40f96b82ad
2 changed files with 18 additions and 16 deletions

View file

@ -534,11 +534,11 @@ private:
// Transfer (not copy) elements of aTable to a new hb_blob_t and
// return ownership to the caller. A weak reference to the blob is
// recorded in the hashtable entry so that others may use the same
// table.
// recorded in the font entry's table cache so that others may use
// the same table.
hb_blob_t *
ShareTableAndGetBlob(nsTArray<uint8_t>&& aTable,
nsTHashtable<FontTableHashEntry> *aHashtable);
gfxFontEntry* aFontEntry);
// Return a strong reference to the blob.
// Callers must hb_blob_destroy the returned blob.