1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibPDF: Get inline image data from parser to renderer

We create a inline_image_end operator that has all the relevant data
in a synthetic StreamObject.

inline_image_end is still a RENDERER_TODO(), so no real behavior
change. (Previously we'd call only inline_image_begin, so string the
todo message is about is now a bit different. But no interesting
behavior change.)
This commit is contained in:
Nico Weber 2023-12-18 16:36:29 -05:00 committed by Andreas Kling
parent 3285502ec6
commit 022fce75a6
2 changed files with 19 additions and 5 deletions

View file

@ -688,8 +688,19 @@ RENDERER_HANDLER(set_painting_color_and_space_to_cmyk)
}
RENDERER_TODO(shade)
RENDERER_TODO(inline_image_begin)
RENDERER_TODO(inline_image_begin_data)
RENDERER_HANDLER(inline_image_begin)
{
// The parser only calls the inline_image_end handler for inline images.
VERIFY_NOT_REACHED();
}
RENDERER_HANDLER(inline_image_begin_data)
{
// The parser only calls the inline_image_end handler for inline images.
VERIFY_NOT_REACHED();
}
RENDERER_TODO(inline_image_end)
RENDERER_HANDLER(paint_xobject)
{