mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
LibWeb: Remove done TODO and fix typo
This commit is contained in:
parent
40ad8b793d
commit
50ab2de10e
Notes:
sideshowbarker
2024-07-17 08:02:16 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/50ab2de10e Pull-request: https://github.com/SerenityOS/serenity/pull/14980 Reviewed-by: https://github.com/bgianfo
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue