From 50ab2de10ed8cfd7ba1c247fe8a77a0473ab64ac Mon Sep 17 00:00:00 2001 From: MacDue Date: Tue, 23 Aug 2022 13:13:24 +0100 Subject: [PATCH] LibWeb: Remove done TODO and fix typo --- Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp b/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp index 168804444f..67c5767f3a 100644 --- a/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp +++ b/Userland/Libraries/LibWeb/Painting/BackgroundPainting.cpp @@ -104,7 +104,6 @@ void paint_background(PaintContext& context, Layout::NodeWithStyleAndBoxModelMet // Note: Background layers are ordered front-to-back, so we paint them in reverse for (auto& layer : background_layers->in_reverse()) { - // TODO: Gradients! if (!layer_is_paintable(layer)) continue; Gfx::PainterStateSaver state { painter }; @@ -136,7 +135,7 @@ void paint_background(PaintContext& context, Layout::NodeWithStyleAndBoxModelMet break; } - // FIXME: Implement proper derault sizing algorithm: https://drafts.csswg.org/css-images/#default-sizing + // FIXME: Implement proper default sizing algorithm: https://drafts.csswg.org/css-images/#default-sizing auto natural_image_width = image.natural_width().value_or(background_positioning_area.width()); auto natural_image_height = image.natural_height().value_or(background_positioning_area.height());