diff --git a/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp b/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp index 8302a5125c..fda816b1d3 100644 --- a/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp +++ b/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp @@ -5,6 +5,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include @@ -41,7 +42,9 @@ void paint_background(PaintContext& context, Layout::NodeWithStyleAndBoxModelMet if (background_layers && !background_layers->is_empty()) color_rect = get_box(background_layers->last().clip); // FIXME: Support elliptical corners - painter.fill_rect_with_rounded_corners(color_rect.to_rounded(), background_color, border_radius.top_left, border_radius.top_right, border_radius.bottom_right, border_radius.bottom_left); + Gfx::AntiAliasingPainter aa_painter { painter }; + aa_painter.fill_rect_with_rounded_corners(color_rect.to_rounded(), + background_color, border_radius.top_left, border_radius.top_right, border_radius.bottom_right, border_radius.bottom_left); if (!background_layers) return;