mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWeb: Pass color to draw_text in marker painting routines
This commit is contained in:
parent
7b825fb44b
commit
1968cb0cc5
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/sdomi Commit: https://github.com/SerenityOS/serenity/commit/1968cb0cc5 Pull-request: https://github.com/SerenityOS/serenity/pull/20169
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue