mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user