diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index f4b55446aa1..1ba23a2c9b5 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -553,18 +553,8 @@ impl Parse for Contain { "layout" => Some(Contain::LAYOUT), "style" => Some(Contain::STYLE), "paint" => Some(Contain::PAINT), - "strict" => { - if result.is_empty() { - return Ok(Contain::STRICT | Contain::STRICT_BITS) - } - None - }, - "none" => { - if result.is_empty() { - return Ok(result) - } - None - }, + "strict" if result.is_empty() => return Ok(Contain::STRICT | Contain::STRICT_BITS), + "none" if result.is_empty() => return Ok(result), _ => None };