Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1448703 - follow-up - disambiguate unknown font from cleared all.…
Browse files Browse the repository at this point in the history
… r=me
  • Loading branch information
lsalzman committed Apr 26, 2018
1 parent 2647511 commit 38ade8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gfx/webrender_bindings/Moz2DImageRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static struct FontDeleteLog {
}

void AddAll() {
AddEntry(0);
AddEntry(~0);
}

// Find a matching entry in the log, searching backwards starting at the newest
Expand All @@ -105,7 +105,7 @@ static struct FontDeleteLog {
return "deleted font";
} else if (mEntries[offset] == namespaceEntry) {
return "cleared namespace";
} else if (!mEntries[offset]) {
} else if (mEntries[offset] == (uint64_t)~0) {
return "cleared all";
}
} while (offset != mNextEntry);
Expand Down

0 comments on commit 38ade8a

Please sign in to comment.