LibWeb: Make Document::run_the_document_write_steps take a StringView

Which flows on down into HTMLTokenizer::insert_input_at_insertion_point.
This commit is contained in:
Shannon Booth 2023-09-12 23:16:10 +12:00 committed by Andreas Kling
parent 827170f6e6
commit 49eb3bfb1d
Notes: sideshowbarker 2024-07-17 23:07:41 +09:00
4 changed files with 6 additions and 6 deletions

View file

@ -2799,7 +2799,7 @@ HTMLTokenizer::HTMLTokenizer(StringView input, DeprecatedString const& encoding)
m_source_positions.empend(0u, 0u);
}
void HTMLTokenizer::insert_input_at_insertion_point(DeprecatedString const& input)
void HTMLTokenizer::insert_input_at_insertion_point(StringView input)
{
auto utf8_iterator_byte_offset = m_utf8_view.byte_offset_of(m_utf8_iterator);