1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

LibWeb/CSS: Automate parsing view-transition-name

This commit is contained in:
Sam Atkins 2025-02-25 11:47:36 +00:00
parent c729c3fcee
commit ab4b46f990
Notes: github-actions[bot] 2025-02-26 11:24:05 +00:00
3 changed files with 3 additions and 37 deletions

View file

@ -1602,12 +1602,8 @@ MixBlendMode ComputedProperties::mix_blend_mode() const
Optional<FlyString> ComputedProperties::view_transition_name() const
{
auto const& value = property(PropertyID::ViewTransitionName);
if (value.is_custom_ident()) {
auto ident = value.as_custom_ident().custom_ident();
if (ident == "none"_fly_string)
return {};
return ident;
}
if (value.is_custom_ident())
return value.as_custom_ident().custom_ident();
return {};
}