mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 05:29:56 +00:00
LibWeb: Store opacity
in computed form in ComputedProperties
This commit is contained in:
parent
246a1c41ff
commit
1ba84de4f6
Notes:
github-actions[bot]
2025-09-08 10:07:09 +00:00
Author: https://github.com/Calme1709
Commit: 1ba84de4f6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6112
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 31 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue