mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +00:00
LibWeb: Store fill-opacity
in computed form in ComputedProperties
This commit is contained in:
parent
1ba84de4f6
commit
9434b08bed
Notes:
github-actions[bot]
2025-09-08 10:07:03 +00:00
Author: https://github.com/Calme1709
Commit: 9434b08bed
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6112
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 2 additions and 6 deletions
|
@ -813,10 +813,6 @@ RefPtr<StyleValue const> CSSStyleProperties::style_value_for_computed_property(L
|
|||
|
||||
return get_computed_value(property_id);
|
||||
}
|
||||
case PropertyID::FillOpacity: {
|
||||
auto opacity = layout_node.computed_values().fill_opacity();
|
||||
return NumberStyleValue::create(opacity);
|
||||
}
|
||||
case PropertyID::StopOpacity: {
|
||||
auto opacity = layout_node.computed_values().stop_opacity();
|
||||
return NumberStyleValue::create(opacity);
|
||||
|
|
|
@ -479,8 +479,7 @@ float ComputedProperties::opacity() const
|
|||
|
||||
float ComputedProperties::fill_opacity() const
|
||||
{
|
||||
auto const& value = property(PropertyID::FillOpacity);
|
||||
return resolve_opacity_value(value);
|
||||
return property(PropertyID::FillOpacity).as_number().number();
|
||||
}
|
||||
|
||||
StrokeLinecap ComputedProperties::stroke_linecap() const
|
||||
|
|
|
@ -3283,6 +3283,7 @@ NonnullRefPtr<StyleValue const> StyleComputer::compute_value_of_property(Propert
|
|||
return compute_border_or_outline_width(specified_value, get_property_specified_value(PropertyID::BorderTopStyle), computation_context);
|
||||
case PropertyID::OutlineWidth:
|
||||
return compute_border_or_outline_width(specified_value, get_property_specified_value(PropertyID::OutlineStyle), computation_context);
|
||||
case PropertyID::FillOpacity:
|
||||
case PropertyID::Opacity:
|
||||
return compute_opacity(specified_value, computation_context);
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue