mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Migrate ListItemMarkerBox's text from ByteString to String
This commit is contained in:
parent
8b52a354fa
commit
b987d53926
Notes:
github-actions[bot]
2025-02-11 09:40:28 +00:00
Author: https://github.com/AtkinsSJ
Commit: b987d53926
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3528
5 changed files with 16 additions and 15 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue