mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
LibWeb/CSS: Remove double set_property_expanding_shorthands() call
If `value` was UnresolvedStyleValue, we'd attempt to `set_property...()` with its resolved value, then call that again with the original UnresolvedStyleValue. For any other kind of `value`, we'd simply call call `set_property...()` twice with the same parameters.
This commit is contained in:
parent
ded3c95da5
commit
804c1eeeed
Notes:
github-actions[bot]
2025-05-14 10:48:25 +00:00
Author: https://github.com/AtkinsSJ
Commit: 804c1eeeed
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4209
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 4 deletions
|
@ -1030,10 +1030,7 @@ void StyleComputer::set_all_properties(
|
|||
NonnullRefPtr<CSSStyleValue const> property_value = value;
|
||||
if (property_value->is_unresolved())
|
||||
property_value = Parser::Parser::resolve_unresolved_style_value(Parser::ParsingParams { document }, element, pseudo_element, property_id, property_value->as_unresolved());
|
||||
if (!property_value->is_unresolved())
|
||||
set_property_expanding_shorthands(cascaded_properties, property_id, property_value, declaration, cascade_origin, important, layer_name);
|
||||
|
||||
set_property_expanding_shorthands(cascaded_properties, property_id, value, declaration, cascade_origin, important, layer_name);
|
||||
set_property_expanding_shorthands(cascaded_properties, property_id, property_value, declaration, cascade_origin, important, layer_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue