mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +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 {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERER_TODO(compatibility_begin)
|
RENDERER_HANDLER(compatibility_begin)
|
||||||
RENDERER_TODO(compatibility_end)
|
{
|
||||||
|
// 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>
|
template<typename T>
|
||||||
Gfx::Point<T> Renderer::map(T x, T y) const
|
Gfx::Point<T> Renderer::map(T x, T y) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue