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:
parent
2d40df821a
commit
98e272ce15
1 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue