LibWeb: Port Node interface from DeprecatedString to String

Which is fortunately quite straight forward :^)
This commit is contained in:
Shannon Booth 2023-09-17 10:51:43 +12:00 committed by Andreas Kling
parent a76ef04ae6
commit 8ce9e51c97
Notes: sideshowbarker 2024-07-17 01:46:00 +09:00
21 changed files with 50 additions and 45 deletions

View file

@ -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)));
}
}