From a5cf875e236ce41c9a42594b5f60b303c2bb2e2c Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Tue, 21 Nov 2023 15:24:42 +0100 Subject: [PATCH] LibWeb: Fix typo in FillEllipse painting command name --- Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp | 4 ++-- Userland/Libraries/LibWeb/Painting/RecordingPainter.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp b/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp index 1d4a0c1c8e..0cba3373d3 100644 --- a/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp +++ b/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp @@ -107,7 +107,7 @@ void RecordingPainter::draw_ellipse(Gfx::IntRect const& a_rect, Color color, int void RecordingPainter::fill_ellipse(Gfx::IntRect const& a_rect, Color color, Gfx::AntiAliasingPainter::BlendMode blend_mode) { - push_command(FillElipse { + push_command(FillEllipse { .rect = state().translation.map(a_rect), .color = color, .blend_mode = blend_mode, @@ -488,7 +488,7 @@ void RecordingPainter::execute(PaintingCommandExecutor& executor) [&](DrawEllipse const& command) { return executor.draw_ellipse(command.rect, command.color, command.thickness); }, - [&](FillElipse const& command) { + [&](FillEllipse const& command) { return executor.fill_ellipse(command.rect, command.color, command.blend_mode); }, [&](DrawLine const& command) { diff --git a/Userland/Libraries/LibWeb/Painting/RecordingPainter.h b/Userland/Libraries/LibWeb/Painting/RecordingPainter.h index 29c5026325..8f0db0b604 100644 --- a/Userland/Libraries/LibWeb/Painting/RecordingPainter.h +++ b/Userland/Libraries/LibWeb/Painting/RecordingPainter.h @@ -203,7 +203,7 @@ struct DrawEllipse { [[nodiscard]] Gfx::IntRect bounding_rect() const { return rect; } }; -struct FillElipse { +struct FillEllipse { Gfx::IntRect rect; Color color; Gfx::AntiAliasingPainter::BlendMode blend_mode; @@ -332,7 +332,7 @@ using PaintingCommand = Variant< StrokePathUsingColor, StrokePathUsingPaintStyle, DrawEllipse, - FillElipse, + FillEllipse, DrawLine, DrawSignedDistanceField, PaintProgressbar,