mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
LibWeb: Remove now-unused parse_css_value(ComponentValue)
method
:^)
This commit is contained in:
parent
7e8ed996c9
commit
c0e61f92c0
2 changed files with 0 additions and 34 deletions
|
@ -7332,39 +7332,6 @@ ErrorOr<Parser::PropertyAndValue> Parser::parse_css_value_for_properties(Readonl
|
||||||
return PropertyAndValue { property_ids.first(), nullptr };
|
return PropertyAndValue { property_ids.first(), nullptr };
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<RefPtr<StyleValue>> Parser::parse_css_value(ComponentValue const& component_value)
|
|
||||||
{
|
|
||||||
if (auto builtin = TRY(parse_builtin_value(component_value)))
|
|
||||||
return builtin;
|
|
||||||
|
|
||||||
if (auto dynamic = TRY(parse_dynamic_value(component_value)))
|
|
||||||
return dynamic;
|
|
||||||
|
|
||||||
// We parse colors before numbers, to catch hashless hex colors.
|
|
||||||
if (auto color = TRY(parse_color_value(component_value)))
|
|
||||||
return color;
|
|
||||||
|
|
||||||
if (auto dimension = TRY(parse_dimension_value(component_value)))
|
|
||||||
return dimension;
|
|
||||||
|
|
||||||
if (auto numeric = TRY(parse_numeric_value(component_value)))
|
|
||||||
return numeric;
|
|
||||||
|
|
||||||
if (auto identifier = TRY(parse_identifier_value(component_value)))
|
|
||||||
return identifier;
|
|
||||||
|
|
||||||
if (auto string = TRY(parse_string_value(component_value)))
|
|
||||||
return string;
|
|
||||||
|
|
||||||
if (auto image = TRY(parse_image_value(component_value)))
|
|
||||||
return image;
|
|
||||||
|
|
||||||
if (auto rect = TRY(parse_rect_value(component_value)))
|
|
||||||
return rect;
|
|
||||||
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
Optional<Selector::SimpleSelector::ANPlusBPattern> Parser::parse_a_n_plus_b_pattern(TokenStream<ComponentValue>& values)
|
Optional<Selector::SimpleSelector::ANPlusBPattern> Parser::parse_a_n_plus_b_pattern(TokenStream<ComponentValue>& values)
|
||||||
{
|
{
|
||||||
auto transaction = values.begin_transaction();
|
auto transaction = values.begin_transaction();
|
||||||
|
|
|
@ -286,7 +286,6 @@ private:
|
||||||
RefPtr<StyleValue> style_value;
|
RefPtr<StyleValue> style_value;
|
||||||
};
|
};
|
||||||
ErrorOr<PropertyAndValue> parse_css_value_for_properties(ReadonlySpan<PropertyID>, TokenStream<ComponentValue>&);
|
ErrorOr<PropertyAndValue> parse_css_value_for_properties(ReadonlySpan<PropertyID>, TokenStream<ComponentValue>&);
|
||||||
ErrorOr<RefPtr<StyleValue>> parse_css_value(ComponentValue const&);
|
|
||||||
ErrorOr<RefPtr<StyleValue>> parse_builtin_value(ComponentValue const&);
|
ErrorOr<RefPtr<StyleValue>> parse_builtin_value(ComponentValue const&);
|
||||||
ErrorOr<RefPtr<StyleValue>> parse_dynamic_value(ComponentValue const&);
|
ErrorOr<RefPtr<StyleValue>> parse_dynamic_value(ComponentValue const&);
|
||||||
ErrorOr<RefPtr<CalculatedStyleValue>> parse_calculated_value(Vector<ComponentValue> const&);
|
ErrorOr<RefPtr<CalculatedStyleValue>> parse_calculated_value(Vector<ComponentValue> const&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue