mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
LibWeb: Parse and store filter
property
This shares its implementation with `backdrop-filter`.
This commit is contained in:
parent
ea9abe26e1
commit
29974de852
Notes:
github-actions[bot]
2024-10-26 09:28:54 +00:00
Author: https://github.com/gmta
Commit: 29974de852
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1963
14 changed files with 104 additions and 75 deletions
|
@ -613,12 +613,20 @@ Optional<CSS::Appearance> StyleProperties::appearance() const
|
|||
return appearance;
|
||||
}
|
||||
|
||||
CSS::BackdropFilter StyleProperties::backdrop_filter() const
|
||||
CSS::Filter StyleProperties::backdrop_filter() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::BackdropFilter);
|
||||
if (value->is_filter_value_list())
|
||||
return BackdropFilter(value->as_filter_value_list());
|
||||
return BackdropFilter::make_none();
|
||||
return Filter(value->as_filter_value_list());
|
||||
return Filter::make_none();
|
||||
}
|
||||
|
||||
CSS::Filter StyleProperties::filter() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::Filter);
|
||||
if (value->is_filter_value_list())
|
||||
return Filter(value->as_filter_value_list());
|
||||
return Filter::make_none();
|
||||
}
|
||||
|
||||
Optional<CSS::Positioning> StyleProperties::position() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue