LibJS+LibWeb: Remove more uses of DeprecatedFlyString

This commit is contained in:
Andreas Kling 2025-03-24 11:27:27 +00:00 committed by Andreas Kling
parent 46a5710238
commit f1914893e9
Notes: github-actions[bot] 2025-03-24 22:28:20 +00:00
12 changed files with 10 additions and 22 deletions

View file

@ -2923,7 +2923,7 @@ void HTMLTokenizer::switch_to(Badge<HTMLParser>, State new_state)
void HTMLTokenizer::will_emit(HTMLToken& token)
{
if (token.is_start_tag())
m_last_emitted_start_tag_name = token.tag_name().to_deprecated_fly_string();
m_last_emitted_start_tag_name = token.tag_name();
auto is_start_or_end_tag = token.type() == HTMLToken::Type::StartTag || token.type() == HTMLToken::Type::EndTag;
token.set_end_position({}, nth_last_position(is_start_or_end_tag ? 1 : 0));
@ -2937,7 +2937,7 @@ bool HTMLTokenizer::current_end_tag_token_is_appropriate() const
VERIFY(m_current_token.is_end_tag());
if (!m_last_emitted_start_tag_name.has_value())
return false;
return m_current_token.tag_name().to_deprecated_fly_string() == m_last_emitted_start_tag_name.value();
return m_current_token.tag_name() == m_last_emitted_start_tag_name.value();
}
bool HTMLTokenizer::consumed_as_part_of_an_attribute() const