浏览代码

LibWeb: Fix typo in FillEllipse painting command name

Aliaksandr Kalenik 1 年之前
父节点
当前提交
a5cf875e23

+ 2 - 2
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) {

+ 2 - 2
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,