LibWeb: Store opacity in computed form in ComputedProperties

This commit is contained in:
Callum Law 2025-09-08 00:05:45 +12:00 committed by Tim Ledbetter
commit 1ba84de4f6
Notes: github-actions[bot] 2025-09-08 10:07:09 +00:00
5 changed files with 31 additions and 9 deletions

View file

@ -813,10 +813,6 @@ RefPtr<StyleValue const> CSSStyleProperties::style_value_for_computed_property(L
return get_computed_value(property_id);
}
case PropertyID::Opacity: {
auto opacity = layout_node.computed_values().opacity();
return NumberStyleValue::create(opacity);
}
case PropertyID::FillOpacity: {
auto opacity = layout_node.computed_values().fill_opacity();
return NumberStyleValue::create(opacity);