1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

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
parent 24edb7c97f
commit 1d6c2cb287
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&);