LibWeb: Move media-query parsing code to separate file

Parser.cpp is big and complicated enough to make CLion sluggish and
unhappy, so let's move some code out of it.
This commit is contained in:
Sam Atkins 2023-08-17 14:56:00 +01:00 committed by Andreas Kling
commit 1d6c2cb287
Notes: sideshowbarker 2024-07-16 22:54:10 +09:00
4 changed files with 644 additions and 616 deletions

View file

@ -185,6 +185,8 @@ private:
Vector<FontFace::Source> parse_font_face_src(TokenStream<ComponentValue>&);
CSSRule* convert_to_rule(NonnullRefPtr<Rule>);
CSSMediaRule* convert_to_media_rule(NonnullRefPtr<Rule>);
PropertyOwningCSSStyleDeclaration* convert_to_style_declaration(Vector<DeclarationOrAtRule> const& declarations);
Optional<StyleProperty> convert_to_style_property(Declaration const&);