From 1968cb0cc5a2371a0346306bc5bb42f04bdd02b3 Mon Sep 17 00:00:00 2001 From: Dominique Liberda Date: Sun, 23 Jul 2023 20:05:47 +0200 Subject: [PATCH] LibWeb: Pass color to draw_text in marker painting routines --- Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp b/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp index 2dc01f0daba..6eba7b2518e 100644 --- a/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp @@ -119,7 +119,7 @@ void MarkerPaintable::paint(PaintContext& context, PaintPhase phase) const break; // FIXME: This should use proper text layout logic! // This does not line up with the text in the
  • element which looks very sad :( - context.painter().draw_text(device_enclosing.to_type(), layout_box().text(), layout_box().scaled_font(context), Gfx::TextAlignment::Center); + context.painter().draw_text(device_enclosing.to_type(), layout_box().text(), layout_box().scaled_font(context), Gfx::TextAlignment::Center, color); break; case CSS::ListStyleType::None: return;