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

LibWeb: Make parse_css_value_for_properties() return Optional

Signalling failure with a null `PropertyAndValue::style_value` is weird.
This commit is contained in:
Sam Atkins 2023-08-19 15:26:57 +01:00 committed by Andreas Kling
parent 2038cb3c81
commit e177cef8ff
2 changed files with 40 additions and 38 deletions

View file

@ -198,7 +198,7 @@ private:
PropertyID property;
RefPtr<StyleValue> style_value;
};
PropertyAndValue parse_css_value_for_properties(ReadonlySpan<PropertyID>, TokenStream<ComponentValue>&);
Optional<PropertyAndValue> parse_css_value_for_properties(ReadonlySpan<PropertyID>, TokenStream<ComponentValue>&);
RefPtr<StyleValue> parse_builtin_value(ComponentValue const&);
RefPtr<CalculatedStyleValue> parse_calculated_value(ComponentValue const&);
// NOTE: Implemented in generated code. (GenerateCSSMathFunctions.cpp)