Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
  • Loading branch information
Loirooriol committed Oct 9, 2024
1 parent ebd1832 commit 8f9898c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions style/values/computed/length.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ impl MaxSize {
None
},
Self::LengthPercentage(ref lp) => Some(lp.to_used_value(percentage_basis)),
Self::AnchorSizeFunction(_) => unreachable!("anchor-size() should be disabled"),
}
}

Expand All @@ -197,6 +198,7 @@ impl MaxSize {
None
},
Self::LengthPercentage(ref lp) => lp.maybe_to_used_value(percentage_basis),
Self::AnchorSizeFunction(_) => unreachable!("anchor-size() should be disabled"),
}
}
}
Expand All @@ -211,6 +213,7 @@ impl Size {
None
},
Self::LengthPercentage(ref lp) => Some(lp.to_used_value(percentage_basis)),
Self::AnchorSizeFunction(_) => unreachable!("anchor-size() should be disabled"),
}
}

Expand All @@ -223,6 +226,7 @@ impl Size {
None
},
Self::LengthPercentage(ref lp) => lp.maybe_to_used_value(percentage_basis),
Self::AnchorSizeFunction(_) => unreachable!("anchor-size() should be disabled"),
}
}

Expand Down

0 comments on commit 8f9898c

Please sign in to comment.