Bug 1875670 - followup - fix build failure in fuzz/TestCOLRv1.cpp. r=fix CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D200517
This commit is contained in:
Jonathan Kew 2024-02-02 23:15:30 +00:00
parent 4a12f611f8
commit 0b24eb4148

View File

@ -43,8 +43,9 @@ static int FuzzingRunCOLRv1(const uint8_t* data, size_t size) {
RefPtr sf = new MockScaledFont(uf, hb_data_font);
Float f2p = kPixelSize / hb_face_get_upem(hb_data_face);
UniquePtr<nsTArray<sRGBColor>> colorPalette =
COLRFonts::SetupColorPalette(hb_data_face, nullptr, nullptr, "dummy"_ns);
auto colorPalette =
MakeUnique<nsTArray<sRGBColor>>(COLRFonts::CreateColorPalette(
hb_data_face, nullptr, nullptr, "dummy"_ns));
for (unsigned i = 0; i <= glyph_count; ++i) {
if (COLRFonts::GetColrTableVersion(colr) == 1) {