mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibPDF: Return results directly and avoid unpacking+packing
This commit is contained in:
parent
aa9fab9c3a
commit
287bb0feac
Notes:
sideshowbarker
2024-07-17 03:34:13 +09:00
Author: https://github.com/rtobar Commit: https://github.com/SerenityOS/serenity/commit/287bb0feac Pull-request: https://github.com/SerenityOS/serenity/pull/16202
@ -319,8 +319,7 @@ RENDERER_HANDLER(path_fill_nonzero)
|
||||
|
||||
RENDERER_HANDLER(path_fill_nonzero_deprecated)
|
||||
{
|
||||
TRY(handle_path_fill_nonzero(args));
|
||||
return {};
|
||||
return handle_path_fill_nonzero(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_fill_evenodd)
|
||||
@ -334,29 +333,25 @@ RENDERER_HANDLER(path_fill_evenodd)
|
||||
RENDERER_HANDLER(path_fill_stroke_nonzero)
|
||||
{
|
||||
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
||||
TRY(handle_path_fill_nonzero(args));
|
||||
return {};
|
||||
return handle_path_fill_nonzero(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_fill_stroke_evenodd)
|
||||
{
|
||||
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
||||
TRY(handle_path_fill_evenodd(args));
|
||||
return {};
|
||||
return handle_path_fill_evenodd(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_close_fill_stroke_nonzero)
|
||||
{
|
||||
m_current_path.close();
|
||||
TRY(handle_path_fill_stroke_nonzero(args));
|
||||
return {};
|
||||
return handle_path_fill_stroke_nonzero(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_close_fill_stroke_evenodd)
|
||||
{
|
||||
m_current_path.close();
|
||||
TRY(handle_path_fill_stroke_evenodd(args));
|
||||
return {};
|
||||
return handle_path_fill_stroke_evenodd(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_end)
|
||||
|
Loading…
Reference in New Issue
Block a user