LibWeb: Migrate ListItemMarkerBox's text from ByteString to String

This commit is contained in:
Sam Atkins 2025-02-10 11:48:12 +00:00 committed by Andreas Kling
commit b987d53926
Notes: github-actions[bot] 2025-02-11 09:40:28 +00:00
5 changed files with 16 additions and 15 deletions

View file

@ -117,7 +117,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 <li> element which looks very sad :(
context.display_list_recorder().draw_text(device_enclosing.to_type<int>(), MUST(String::from_byte_string(*text)), layout_box().scaled_font(context), Gfx::TextAlignment::Center, color);
context.display_list_recorder().draw_text(device_enclosing.to_type<int>(), *text, layout_box().scaled_font(context), Gfx::TextAlignment::Center, color);
break;
}
case CSS::ListStyleType::None: