mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Port Layout::TextNode from DeprecatedString
This commit is contained in:
parent
6b32a1f18f
commit
56d10bf198
Notes:
sideshowbarker
2024-07-16 23:13:25 +09:00
Author: https://github.com/shannonbooth
Commit: 56d10bf198
Pull-request: https://github.com/SerenityOS/serenity/pull/22057
Reviewed-by: https://github.com/trflynn89
9 changed files with 37 additions and 35 deletions
|
@ -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<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue