Skip to content

Truly independent web browser

LibWeb: Map the winner value when reading flow keywords

Timothy Flynn178a1c183768
diff --git a/Libraries/LibWeb/Rust/src/css/style/pipeline/compute.rs b/Libraries/LibWeb/Rust/src/css/style/pipeline/compute.rs
index dacc4d1a59b..4119907b3e8 100644
--- a/Libraries/LibWeb/Rust/src/css/style/pipeline/compute.rs
+++ b/Libraries/LibWeb/Rust/src/css/style/pipeline/compute.rs
@@ -1477,7 +1477,7 @@ impl RetainedState {
let flow_keyword = classified
.as_ref()
.filter(|_| is_flow(target_property))
- .and_then(|classified| classified.value.value())
+ .map(|classified| classified.value.value())
.and_then(RetainedStyleValueData::optional_data)
.and_then(|value| match value {
StyleValueData::Keyword { keyword } => Some(*keyword),