mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
f8f3b3ee43
6 changed files with 38 additions and 22 deletions
|
|
@ -860,6 +860,10 @@ gfxFont::gfxFont(gfxFontEntry *aFontEntry, const gfxFontStyle *aFontStyle,
|
|||
++gFontCount;
|
||||
#endif
|
||||
mKerningSet = HasFeatureSet(HB_TAG('k','e','r','n'), mKerningEnabled);
|
||||
|
||||
// Ensure the gfxFontEntry's unitsPerEm and extents fields are initialized,
|
||||
// so that GetFontExtents can use them without risk of races.
|
||||
Unused << mFontEntry->UnitsPerEm();
|
||||
}
|
||||
|
||||
gfxFont::~gfxFont()
|
||||
|
|
|
|||
|
|
@ -520,8 +520,9 @@ ShareTableAndGetBlob(nsTArray<uint8_t>&& aTable,
|
|||
mSharedBlobData, DeleteFontTableBlobData);
|
||||
if (mBlob == hb_blob_get_empty() ) {
|
||||
// The FontTableBlobData was destroyed during hb_blob_create().
|
||||
// The (empty) blob is still be held in the hashtable with a strong
|
||||
// The (empty) blob will still be held in the hashtable with a strong
|
||||
// reference.
|
||||
mSharedBlobData = nullptr;
|
||||
return hb_blob_reference(mBlob);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue