mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibWeb: Port Layout::TextNode from DeprecatedString
This commit is contained in:
parent
6b32a1f18f
commit
56d10bf198
9 changed files with 37 additions and 35 deletions
|
@ -31,7 +31,7 @@ StringView LineBoxFragment::text() const
|
|||
{
|
||||
if (!is<TextNode>(layout_node()))
|
||||
return {};
|
||||
return verify_cast<TextNode>(layout_node()).text_for_rendering().substring_view(m_start, m_length);
|
||||
return verify_cast<TextNode>(layout_node()).text_for_rendering().bytes_as_string_view().substring_view(m_start, m_length);
|
||||
}
|
||||
|
||||
CSSPixelRect const LineBoxFragment::absolute_rect() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue