LibWeb: Pass color to draw_text in marker painting routines

This commit is contained in:
Dominique Liberda 2023-07-23 20:05:47 +02:00 committed by Linus Groh
parent 7b825fb44b
commit 1968cb0cc5
Notes: sideshowbarker 2024-07-17 11:29:41 +09:00

View file

@ -119,7 +119,7 @@ void MarkerPaintable::paint(PaintContext& context, PaintPhase phase) const
break; break;
// FIXME: This should use proper text layout logic! // FIXME: This should use proper text layout logic!
// This does not line up with the text in the <li> element which looks very sad :( // This does not line up with the text in the <li> element which looks very sad :(
context.painter().draw_text(device_enclosing.to_type<int>(), layout_box().text(), layout_box().scaled_font(context), Gfx::TextAlignment::Center); context.painter().draw_text(device_enclosing.to_type<int>(), layout_box().text(), layout_box().scaled_font(context), Gfx::TextAlignment::Center, color);
break; break;
case CSS::ListStyleType::None: case CSS::ListStyleType::None:
return; return;