mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibWeb: Port Node interface from DeprecatedString to String
Which is fortunately quite straight forward :^)
This commit is contained in:
parent
a76ef04ae6
commit
8ce9e51c97
Notes:
sideshowbarker
2024-07-17 01:46:00 +09:00
Author: https://github.com/shannonbooth
Commit: 8ce9e51c97
Pull-request: https://github.com/SerenityOS/serenity/pull/21116
21 changed files with 50 additions and 45 deletions
|
@ -106,7 +106,7 @@ void HTMLTextAreaElement::create_shadow_tree_if_needed()
|
|||
m_text_node->set_editable_text_node_owner(Badge<HTMLTextAreaElement> {}, *this);
|
||||
// NOTE: If `children_changed()` was called before now, `m_raw_value` will hold the text content.
|
||||
// Otherwise, it will get filled in whenever that does get called.
|
||||
m_text_node->set_text_content(m_raw_value);
|
||||
m_text_node->set_text_content(MUST(String::from_deprecated_string(m_raw_value)));
|
||||
|
||||
MUST(m_inner_text_element->append_child(*m_text_node));
|
||||
MUST(element->append_child(*m_inner_text_element));
|
||||
|
@ -122,7 +122,7 @@ void HTMLTextAreaElement::children_changed()
|
|||
if (!m_dirty) {
|
||||
m_raw_value = child_text_content();
|
||||
if (m_text_node)
|
||||
m_text_node->set_text_content(m_raw_value);
|
||||
m_text_node->set_text_content(MUST(String::from_deprecated_string(m_raw_value)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue