1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibWeb: Port Layout::TextNode from DeprecatedString

This commit is contained in:
Shannon Booth 2023-11-21 10:56:29 +13:00 committed by Tim Flynn
parent 6b32a1f18f
commit 56d10bf198
9 changed files with 37 additions and 35 deletions

View file

@ -23,7 +23,7 @@ public:
const DOM::Text& dom_node() const { return static_cast<const DOM::Text&>(*Node::dom_node()); }
DeprecatedString const& text_for_rendering() const;
String const& text_for_rendering() const;
struct Chunk {
Utf8View view;
@ -55,7 +55,7 @@ public:
private:
virtual bool is_text_node() const final { return true; }
Optional<DeprecatedString> m_text_for_rendering;
Optional<String> m_text_for_rendering;
};
template<>