1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 02:14:57 +00:00

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
parent 71e8ddcd1c
commit edbf09ea29
6 changed files with 10 additions and 10 deletions

View file

@ -178,7 +178,7 @@ void HtmlView::load(const URL& url)
return;
}
String html = String::copy(f->read_all());
auto html = f->read_all();
auto document = parse_html(html, url);
document->normalize();