Repository: LadybirdBrowser/ladybird
File: Libraries/LibWeb/CSS/Parser/Parser.h (C/C++)

Code before:
    RefPtr<StyleValue const> parse_color_scheme_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_corner_shape_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_counter_value(TokenStream<ComponentValue>&);
    enum class AllowReversed {
        No,
        Yes,
    };
    RefPtr<StyleValue const> parse_counter_definitions_value(TokenStream<ComponentValue>&, AllowReversed, i32 default_value_if_not_reversed);
    RefPtr<StyleValue const> parse_rect_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_ratio_value(TokenStream<ComponentValue>&);
    RefPtr<StringStyleValue const> parse_string_value(TokenStream<ComponentValue>&);
    RefPtr<AbstractImageStyleValue const> parse_image_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_paint_value(TokenStream<ComponentValue>&);
    enum class PositionParsingMode {
        Normal,
        BackgroundPosition,
    };
    RefPtr<PositionStyleValue const> parse_position_value(TokenStream<ComponentValue>&, PositionParsingMode = PositionParsingMode::Normal);
    RefPtr<StyleValue const> parse_filter_value_list_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_contain_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_container_type_value(TokenStream<ComponentValue>&);
    RefPtr<StringStyleValue const> parse_opentype_tag_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_opacity_value(TokenStream<ComponentValue>&);
    RefPtr<FontSourceStyleValue const> parse_font_source_value(TokenStream<ComponentValue>&);

    RefPtr<StyleValue const> parse_accent_color(TokenStream<ComponentValue>& tokens);
    RefPtr<StyleValue const> parse_anchor(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_anchor_size(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_angle_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_angle_percentage_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_flex_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_frequency_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_frequency_percentage_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_integer_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_length_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_length_percentage_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_number_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_number_percentage_value(TokenStream<ComponentValue>& tokens);
    RefPtr<StyleValue const> parse_number_percentage_none_value(TokenStream<ComponentValue>& tokens);
    RefPtr<StyleValue const> parse_percentage_value(TokenStream<ComponentValue>& tokens);
    RefPtr<StyleValue const> parse_resolution_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_time_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_time_percentage_value(TokenStream<ComponentValue>&);

    RefPtr<StyleValue const> parse_view_timeline_inset_value(TokenStream<ComponentValue>&);
    RefPtr<ScrollFunctionStyleValue const> parse_scroll_function_value(TokenStream<ComponentValue>&);
    RefPtr<ViewFunctionStyleValue const> parse_view_function_value(TokenStream<ComponentValue>&);

    using ParseFunction = AK::Function<RefPtr<StyleValue const>(TokenStream<ComponentValue>&)>;
    RefPtr<StyleValueList const> parse_comma_separated_value_list(TokenStream<ComponentValue>&, ParseFunction);
    RefPtr<StyleValueList const> parse_simple_comma_separated_value_list(PropertyID, TokenStream<ComponentValue>&);

Review comment (suggestion):
Also, the commit message talks about parsing. Really this change is about making `AccentColor` us the current `accent-color`, so say something about that.

Code after:
    RefPtr<StyleValue const> parse_color_function(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_color_mix_function(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_light_dark_color_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_color_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_color_scheme_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_corner_shape_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_counter_value(TokenStream<ComponentValue>&);
    enum class AllowReversed {
        No,
        Yes,
    };
    RefPtr<StyleValue const> parse_counter_definitions_value(TokenStream<ComponentValue>&, AllowReversed, i32 default_value_if_not_reversed);
    RefPtr<StyleValue const> parse_rect_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_ratio_value(TokenStream<ComponentValue>&);
    RefPtr<StringStyleValue const> parse_string_value(TokenStream<ComponentValue>&);
    RefPtr<AbstractImageStyleValue const> parse_image_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_paint_value(TokenStream<ComponentValue>&);
    enum class PositionParsingMode {
        Normal,
        BackgroundPosition,
    };
    RefPtr<PositionStyleValue const> parse_position_value(TokenStream<ComponentValue>&, PositionParsingMode = PositionParsingMode::Normal);
    RefPtr<StyleValue const> parse_filter_value_list_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_contain_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_container_type_value(TokenStream<ComponentValue>&);
    RefPtr<StringStyleValue const> parse_opentype_tag_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_opacity_value(TokenStream<ComponentValue>&);
    RefPtr<FontSourceStyleValue const> parse_font_source_value(TokenStream<ComponentValue>&);

    RefPtr<StyleValue const> parse_anchor(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_anchor_size(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_angle_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_angle_percentage_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_flex_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_frequency_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_frequency_percentage_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_integer_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_length_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_length_percentage_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_number_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_number_percentage_value(TokenStream<ComponentValue>& tokens);
    RefPtr<StyleValue const> parse_number_percentage_none_value(TokenStream<ComponentValue>& tokens);
    RefPtr<StyleValue const> parse_percentage_value(TokenStream<ComponentValue>& tokens);
    RefPtr<StyleValue const> parse_resolution_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_time_value(TokenStream<ComponentValue>&);
    RefPtr<StyleValue const> parse_time_percentage_value(TokenStream<ComponentValue>&);

    RefPtr<StyleValue const> parse_view_timeline_inset_value(TokenStream<ComponentValue>&);
    RefPtr<ScrollFunctionStyleValue const> parse_scroll_function_value(TokenStream<ComponentValue>&);
    RefPtr<ViewFunctionStyleValue const> parse_view_function_value(TokenStream<ComponentValue>&);