File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Userland/Libraries/LibWeb/HTML Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ namespace Web::HTML {
20
20
21
21
HTMLTextAreaElement::HTMLTextAreaElement (DOM::Document& document, DOM::QualifiedName qualified_name)
22
22
: HTMLElement(document, move(qualified_name))
23
- , m_raw_value(DeprecatedString::empty())
24
23
{
25
24
}
26
25
@@ -111,7 +110,7 @@ void HTMLTextAreaElement::create_shadow_tree_if_needed()
111
110
m_text_node->set_editable_text_node_owner (Badge<HTMLTextAreaElement> {}, *this );
112
111
// NOTE: If `children_changed()` was called before now, `m_raw_value` will hold the text content.
113
112
// Otherwise, it will get filled in whenever that does get called.
114
- m_text_node->set_text_content (MUST ( String::from_deprecated_string ( m_raw_value)) );
113
+ m_text_node->set_text_content (m_raw_value);
115
114
116
115
MUST (m_inner_text_element->append_child (*m_text_node));
117
116
MUST (element->append_child (*m_inner_text_element));
@@ -127,7 +126,7 @@ void HTMLTextAreaElement::children_changed()
127
126
if (!m_dirty) {
128
127
m_raw_value = child_text_content ();
129
128
if (m_text_node)
130
- m_text_node->set_text_content (MUST ( String::from_deprecated_string ( m_raw_value)) );
129
+ m_text_node->set_text_content (m_raw_value);
131
130
}
132
131
}
133
132
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ class HTMLTextAreaElement final
27
27
28
28
virtual JS::GCPtr<Layout::Node> create_layout_node (NonnullRefPtr<CSS::StyleProperties>) override ;
29
29
30
- DeprecatedString const & type () const
30
+ String const & type () const
31
31
{
32
- static DeprecatedString textarea = " textarea" ;
32
+ static String const textarea = " textarea" _string ;
33
33
return textarea;
34
34
}
35
35
@@ -84,7 +84,7 @@ class HTMLTextAreaElement final
84
84
JS::GCPtr<DOM::Text> m_text_node;
85
85
86
86
bool m_dirty { false };
87
- DeprecatedString m_raw_value;
87
+ String m_raw_value;
88
88
};
89
89
90
90
}
You can’t perform that action at this time.
0 commit comments