diff --git a/Userland/Libraries/LibPDF/Renderer.cpp b/Userland/Libraries/LibPDF/Renderer.cpp index 47fd771b4d..3c31ed6b03 100644 --- a/Userland/Libraries/LibPDF/Renderer.cpp +++ b/Userland/Libraries/LibPDF/Renderer.cpp @@ -35,13 +35,6 @@ static void rect_path(Gfx::Path& path, float x, float y, float width, float heig path.close(); } -static Gfx::Path rect_path(float x, float y, float width, float height) -{ - Gfx::Path path; - rect_path(path, x, y, width, height); - return path; -} - template static void rect_path(Gfx::Path& path, Gfx::Rect rect) { @@ -49,7 +42,7 @@ static void rect_path(Gfx::Path& path, Gfx::Rect rect) } template -static Gfx::Path rect_path(Gfx::Rect rect) +static Gfx::Path rect_path(Gfx::Rect const& rect) { Gfx::Path path; rect_path(path, rect); @@ -84,7 +77,7 @@ Renderer::Renderer(RefPtr document, Page const& page, RefPtrfill(Gfx::Color::NamedColor::White); @@ -285,7 +278,7 @@ RENDERER_HANDLER(path_append_rect) void Renderer::begin_path_paint() { - auto bounding_box = map(state().clipping_paths.current.bounding_box()); + auto bounding_box = state().clipping_paths.current.bounding_box(); m_painter.clear_clip_rect(); if (m_rendering_preferences.show_clipping_paths) { m_painter.stroke_path(rect_path(bounding_box), Color::Black, 1);