mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/CSS: Rename CSSNumericType to NumericType
The CSSNumericType defined in the spec is a simple dictionary which is only used for OM purposes. This NumericType class is used internally and matches the more abstract definition of a "type".
This commit is contained in:
Notes:
github-actions[bot]
2025-08-22 08:50:01 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/5bdc2981e3a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5937
@@ -137,7 +137,7 @@ RefPtr<CalculationNode const> Parser::parse_math_function(Function const& functi
|
||||
if (function_data.get_bool("is-variadic"sv).value_or(false)) {
|
||||
// Variadic function
|
||||
function_generator.append(R"~~~(
|
||||
Optional<CSSNumericType> determined_argument_type;
|
||||
Optional<NumericType> determined_argument_type;
|
||||
Vector<NonnullRefPtr<CalculationNode const>> parsed_arguments;
|
||||
parsed_arguments.ensure_capacity(arguments.size());
|
||||
|
||||
@@ -240,7 +240,7 @@ RefPtr<CalculationNode const> Parser::parse_math_function(Function const& functi
|
||||
return nullptr;
|
||||
}
|
||||
size_t argument_index = 0;
|
||||
Optional<CSSNumericType> determined_argument_type;
|
||||
Optional<NumericType> determined_argument_type;
|
||||
)~~~");
|
||||
|
||||
size_t parameter_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user