mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/SVG: Add FEFloodElement
This commit is contained in:
parent
de271b16fc
commit
d3684a36b0
Notes:
github-actions[bot]
2025-07-09 17:08:44 +00:00
Author: https://github.com/ananas-dev
Commit: d3684a36b0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5028
Reviewed-by: https://github.com/gmta ✅
22 changed files with 189 additions and 18 deletions
|
@ -443,6 +443,22 @@ ClipRule ComputedProperties::clip_rule() const
|
|||
return keyword_to_fill_rule(value.to_keyword()).release_value();
|
||||
}
|
||||
|
||||
Color ComputedProperties::flood_color(Layout::NodeWithStyle const& node) const
|
||||
{
|
||||
auto const& value = property(PropertyID::FloodColor);
|
||||
if (value.has_color()) {
|
||||
return value.to_color(node, { .length_resolution_context = Length::ResolutionContext::for_layout_node(node) });
|
||||
}
|
||||
|
||||
return InitialValues::flood_color();
|
||||
}
|
||||
|
||||
float ComputedProperties::flood_opacity() const
|
||||
{
|
||||
auto const& value = property(PropertyID::FloodOpacity);
|
||||
return resolve_opacity_value(value);
|
||||
}
|
||||
|
||||
FlexDirection ComputedProperties::flex_direction() const
|
||||
{
|
||||
auto const& value = property(PropertyID::FlexDirection);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue