summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-08-20 14:38:45 +0100
committerAndreas Kling <kling@serenityos.org>2021-08-20 19:15:32 +0200
commit8f2ab524fabbb02a1db0b3a0e1e0edf8ac93e3b5 (patch)
tree48a719e495ce5bf87608f95f2128cd72a2729ee9 /Userland
parent5d116372a8743c66de56dd2bd16dd395b112c369 (diff)
downloadserenity-8f2ab524fabbb02a1db0b3a0e1e0edf8ac93e3b5.zip
LibWeb: Fix inverted-if typo in flex_shrink_factor()
I messed this up when I changed it before, which was causing a crash.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleProperties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
index 4dfce55295..6ad47dee85 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
@@ -361,7 +361,7 @@ Optional<float> StyleProperties::flex_shrink_factor() const
auto value = property(CSS::PropertyID::FlexShrink);
if (!value.has_value())
return {};
- if (!value.value()->is_numeric()) {
+ if (value.value()->is_numeric()) {
auto numeric = verify_cast<CSS::NumericStyleValue>(value.value().ptr());
return numeric->value();
}