mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
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:
parent
4a12f611f8
commit
0b24eb4148
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user