mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibWeb: Remove now-unused parse_css_value(ComponentValue)
method
:^)
This commit is contained in:
parent
7e8ed996c9
commit
c0e61f92c0
Notes:
sideshowbarker
2024-07-16 22:11:09 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/c0e61f92c0 Pull-request: https://github.com/SerenityOS/serenity/pull/19028
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 };
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
auto transaction = values.begin_transaction();
|
||||
|
|
|
@ -286,7 +286,6 @@ private:
|
|||
RefPtr<StyleValue> style_value;
|
||||
};
|
||||
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_dynamic_value(ComponentValue const&);
|
||||
ErrorOr<RefPtr<CalculatedStyleValue>> parse_calculated_value(Vector<ComponentValue> const&);
|
||||
|
|
Loading…
Reference in a new issue