1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibWeb: Add a class to represent the "source set" concept from HTML

Also comes with a little extra CSS parser helper for parsing "sizes"
attributes in images.
This commit is contained in:
Andreas Kling 2023-05-11 16:56:01 +02:00
parent 9281bf7a01
commit 6fe4fcb74b
5 changed files with 500 additions and 0 deletions

View file

@ -90,6 +90,8 @@ public:
static ErrorOr<RefPtr<StyleValue>> parse_css_value(Badge<StyleComputer>, ParsingContext const&, PropertyID, Vector<ComponentValue> const&);
static ErrorOr<RefPtr<CalculatedStyleValue>> parse_calculated_value(Badge<StyleComputer>, ParsingContext const&, Vector<ComponentValue> const&);
CSS::Length parse_as_sizes_attribute();
private:
Parser(ParsingContext const&, Vector<Token>);