mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/SVG: Add FEFloodElement
This commit is contained in:
committed by
Sam Atkins
parent
de271b16fc
commit
d3684a36b0
Notes:
github-actions[bot]
2025-07-09 17:08:44 +00:00
Author: https://github.com/ananas-dev Commit: https://github.com/LadybirdBrowser/ladybird/commit/d3684a36b0a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5028 Reviewed-by: https://github.com/gmta ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user