LibHTML: Refactor the CSS parser into a class

Also added a parser function for standalone style declarations.
This commit is contained in:
Andreas Kling 2019-09-30 20:24:38 +02:00
parent 8d797fc62e
commit b2a0d20580
Notes: sideshowbarker 2024-07-19 11:52:27 +09:00
2 changed files with 96 additions and 48 deletions

View file

@ -4,4 +4,5 @@
#include <LibHTML/CSS/StyleSheet.h>
NonnullRefPtr<StyleSheet> parse_css(const String&);
NonnullRefPtr<StyleDeclaration> parse_css_declaration(const String&);