mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibWeb: Add CSS::Parser helper for parsing a standalone "calc()" value
This commit is contained in:
parent
f14ad0e8c1
commit
8869dec5fd
2 changed files with 12 additions and 2 deletions
|
@ -86,6 +86,7 @@ public:
|
|||
RefPtr<StyleValue> parse_as_css_value(PropertyID);
|
||||
|
||||
static RefPtr<StyleValue> parse_css_value(Badge<StyleComputer>, ParsingContext const&, PropertyID, Vector<ComponentValue> const&);
|
||||
static RefPtr<CalculatedStyleValue> parse_calculated_value(Badge<StyleComputer>, ParsingContext const&, Vector<ComponentValue> const&);
|
||||
|
||||
private:
|
||||
enum class ParseError {
|
||||
|
@ -270,7 +271,7 @@ private:
|
|||
RefPtr<StyleValue> parse_css_value(ComponentValue const&);
|
||||
RefPtr<StyleValue> parse_builtin_value(ComponentValue const&);
|
||||
RefPtr<StyleValue> parse_dynamic_value(ComponentValue const&);
|
||||
RefPtr<StyleValue> parse_calculated_value(Vector<ComponentValue> const&);
|
||||
RefPtr<CalculatedStyleValue> parse_calculated_value(Vector<ComponentValue> const&);
|
||||
RefPtr<StyleValue> parse_dimension_value(ComponentValue const&);
|
||||
RefPtr<StyleValue> parse_numeric_value(ComponentValue const&);
|
||||
RefPtr<StyleValue> parse_identifier_value(ComponentValue const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue