mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibPDF: Handle SCN and scn operators
This commit is contained in:
parent
e1115cfe48
commit
34efc668d2
Notes:
sideshowbarker
2024-07-17 16:25:05 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/34efc668d2 Pull-request: https://github.com/SerenityOS/serenity/pull/13326 Reviewed-by: https://github.com/alimpfard
1 changed files with 20 additions and 2 deletions
|
@ -480,7 +480,16 @@ RENDERER_HANDLER(set_stroking_color)
|
|||
return {};
|
||||
}
|
||||
|
||||
RENDERER_TODO(set_stroking_color_extended)
|
||||
RENDERER_HANDLER(set_stroking_color_extended)
|
||||
{
|
||||
// FIXME: Handle Pattern color spaces
|
||||
auto last_arg = args.last();
|
||||
if (last_arg.has<NonnullRefPtr<Object>>() && last_arg.get<NonnullRefPtr<Object>>()->is<NameObject>())
|
||||
TODO();
|
||||
|
||||
state().stroke_color = state().stroke_color_space->color(args);
|
||||
return {};
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(set_painting_color)
|
||||
{
|
||||
|
@ -488,7 +497,16 @@ RENDERER_HANDLER(set_painting_color)
|
|||
return {};
|
||||
}
|
||||
|
||||
RENDERER_TODO(set_painting_color_extended)
|
||||
RENDERER_HANDLER(set_painting_color_extended)
|
||||
{
|
||||
// FIXME: Handle Pattern color spaces
|
||||
auto last_arg = args.last();
|
||||
if (last_arg.has<NonnullRefPtr<Object>>() && last_arg.get<NonnullRefPtr<Object>>()->is<NameObject>())
|
||||
TODO();
|
||||
|
||||
state().paint_color = state().paint_color_space->color(args);
|
||||
return {};
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(set_stroking_color_and_space_to_gray)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue