LibHTML: Make the CSS and HTML parsers take StringViews

This allows us to avoid unnecessary making unnecessary String copies of
all the source text.
This commit is contained in:
Andreas Kling 2019-10-07 19:11:33 +02:00
commit edbf09ea29
Notes: sideshowbarker 2024-07-19 11:45:37 +09:00
6 changed files with 10 additions and 10 deletions

View file

@ -3,5 +3,5 @@
#include <AK/NonnullRefPtr.h>
#include <LibHTML/DOM/Document.h>
NonnullRefPtr<Document> parse_html(const String&, const URL& = URL());
NonnullRefPtr<Document> parse_html(const StringView&, const URL& = URL());