1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibPDF: Silently ignore BX / EX operators

See the added comment for reasoning.
This commit is contained in:
Nico Weber 2024-03-02 14:16:26 -05:00 committed by Tim Flynn
parent 2d40df821a
commit 98e272ce15

View file

@ -938,8 +938,20 @@ RENDERER_HANDLER(marked_content_end)
return {};
}
RENDERER_TODO(compatibility_begin)
RENDERER_TODO(compatibility_end)
RENDERER_HANDLER(compatibility_begin)
{
// We're supposed to ignore unknown operands in compatibility_begin / compatibility_end sections.
// But we want to know about all operands, so we just ignore this.
// In practice, it seems like compatibility_begin / compatibility_end were introduced when
// `sh` was added, and they're used exlusively around `sh`.
return {};
}
RENDERER_HANDLER(compatibility_end)
{
// See comment in compatibility_begin.
return {};
}
template<typename T>
Gfx::Point<T> Renderer::map(T x, T y) const