mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 15:28:55 +00:00
LibJS+LibWeb: Remove more uses of DeprecatedFlyString
This commit is contained in:
parent
46a5710238
commit
f1914893e9
Notes:
github-actions[bot]
2025-03-24 22:28:20 +00:00
Author: https://github.com/awesomekling
Commit: f1914893e9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4067
Reviewed-by: https://github.com/trflynn89
12 changed files with 10 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue