summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorTobias Christiansen <tobyase@serenityos.org>2021-09-13 21:08:37 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-13 21:26:31 +0200
commit4c1da4d43a9b350355985653d5a0350013fb479c (patch)
tree426a6ea9c2cef3fe4395217368f69a0af8b777e1 /Userland/Libraries/LibWeb
parent102d345a8fde33be1e814f0a5e848bd40015bf84 (diff)
downloadserenity-4c1da4d43a9b350355985653d5a0350013fb479c.zip
LibWeb: Fix opacity ComputedCSSStyleDeclaration
There was a classic copy&paste error, opacity wasn't getting the right computed value to convert.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp
index 840efe6a01..a48964062c 100644
--- a/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp
+++ b/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp
@@ -495,7 +495,7 @@ Optional<StyleProperty> ComputedCSSStyleDeclaration::property(PropertyID propert
};
}
case CSS::PropertyID::Opacity: {
- auto maybe_opacity = layout_node.computed_values().flex_grow_factor();
+ auto maybe_opacity = layout_node.computed_values().opacity();
if (!maybe_opacity.has_value())
return {};