mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
[gfx] Clarify comments.
There may be other situations where putting a font entry in the cache table may fail that are perfectly valid.
This commit is contained in:
parent
060e2965b8
commit
6e19656e11
2 changed files with 4 additions and 2 deletions
|
|
@ -592,7 +592,8 @@ gfxFontEntry::ShareFontTableAndGetBlob(uint32_t aTag,
|
|||
}
|
||||
|
||||
FontTableHashEntry *entry = mFontTableCache->PutEntry(aTag);
|
||||
if (MOZ_UNLIKELY(!entry)) { // OOM
|
||||
if (MOZ_UNLIKELY(!entry)) {
|
||||
// OOM or other issue storing the entry.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -265,7 +265,8 @@ public:
|
|||
// unregisters the table from the font entry.
|
||||
//
|
||||
// Pass nullptr for aBuffer to indicate that the table is not present and
|
||||
// nullptr will be returned. Also returns nullptr on OOM.
|
||||
// nullptr will be returned. Also returns nullptr on OOM or when there are
|
||||
// other issues storing the entry in the cache table.
|
||||
hb_blob_t *ShareFontTableAndGetBlob(uint32_t aTag,
|
||||
nsTArray<uint8_t>* aTable);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue