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:
parent
c729c3fcee
commit
ab4b46f990
Notes:
github-actions[bot]
2025-02-26 11:24:05 +00:00
Author: https://github.com/AtkinsSJ
Commit: ab4b46f990
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3684
Reviewed-by: https://github.com/trflynn89
3 changed files with 3 additions and 37 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue