mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Remove special handling of all property for animations
There were a couple places that we had special handling for the `all`
property but since d31a58a was merged we can treat it the same as any
other shorthand
This commit is contained in:
parent
56e2ac8a9d
commit
ed0b741a26
Notes:
github-actions[bot]
2025-11-02 22:55:35 +00:00
Author: https://github.com/Calme1709
Commit: ed0b741a26
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6642
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 17 additions and 35 deletions
|
|
@ -1314,13 +1314,9 @@ static void compute_transitioned_properties(ComputedProperties const& style, DOM
|
|||
};
|
||||
|
||||
if (property_value->is_keyword()) {
|
||||
auto keyword = property_value->as_keyword().keyword();
|
||||
if (keyword == Keyword::None) {
|
||||
properties.append({});
|
||||
continue;
|
||||
}
|
||||
if (keyword == Keyword::All)
|
||||
properties_for_this_transition = expanded_longhands_for_shorthand(PropertyID::All);
|
||||
VERIFY(property_value->to_keyword() == Keyword::None);
|
||||
properties.append({});
|
||||
continue;
|
||||
} else {
|
||||
auto maybe_property = property_id_from_string(property_value->as_custom_ident().custom_ident());
|
||||
if (!maybe_property.has_value()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue