Bug 1789403 - Update ots-rlbox.patch to apply to OTS 8.2.2. r=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D156857
This commit is contained in:
Jonathan Kew 2022-09-10 16:10:37 +00:00
parent d317e93d9a
commit a1011e993e

View File

@ -10,7 +10,7 @@ diff --git a/gfx/ots/src/ots.cc b/gfx/ots/src/ots.cc
// The OpenType Font File
// http://www.microsoft.com/typography/otspec/otff.htm
@@ -511,39 +511,9 @@ bool ProcessWOFF(ots::FontFile *header,
@@ -511,43 +511,9 @@ bool ProcessWOFF(ots::FontFile *header,
return ProcessGeneric(header, font, woff_tag, output, data, length, tables, file);
}
@ -34,6 +34,10 @@ diff --git a/gfx/ots/src/ots.cc b/gfx/ots/src/ots.cc
- OTS_MAX_DECOMPRESSED_FILE_SIZE / (1024.0 * 1024.0));
- }
-
- if (decompressed_size > output->size()) {
- return OTS_FAILURE_MSG_HDR("Size of decompressed WOFF 2.0 font exceeds output size (%gMB)", output->size() / (1024.0 * 1024.0));
- }
-
- std::string buf(decompressed_size, 0);
- woff2::WOFF2StringOut out(&buf);
- if (!woff2::ConvertWOFF2ToTTF(data, length, &out)) {