mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +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:
parent
71e8ddcd1c
commit
edbf09ea29
6 changed files with 10 additions and 10 deletions
|
@ -3,6 +3,6 @@
|
|||
#include <AK/NonnullRefPtr.h>
|
||||
#include <LibHTML/CSS/StyleSheet.h>
|
||||
|
||||
NonnullRefPtr<StyleSheet> parse_css(const String&);
|
||||
NonnullRefPtr<StyleDeclaration> parse_css_declaration(const String&);
|
||||
NonnullRefPtr<StyleSheet> parse_css(const StringView&);
|
||||
NonnullRefPtr<StyleDeclaration> parse_css_declaration(const StringView&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue