mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578)
This commit is contained in:
parent
351b5036bf
commit
66258bfbbd
9 changed files with 53 additions and 16 deletions
|
@ -258,10 +258,11 @@ impl BoxFragment {
|
|||
return PhysicalSides::new(top, right, bottom, left);
|
||||
}
|
||||
|
||||
debug_assert!(
|
||||
position == ComputedPosition::Fixed || position == ComputedPosition::Absolute,
|
||||
"Got unknown position."
|
||||
);
|
||||
// TODO(servo#30570) revert to debug_assert!() once underlying bug is fixed
|
||||
#[cfg(debug_assertions)]
|
||||
if !(position == ComputedPosition::Fixed || position == ComputedPosition::Absolute) {
|
||||
log::warn!("debug assertion failed! Got unknown position.");
|
||||
}
|
||||
|
||||
let resolve = |value: &LengthPercentageOrAuto, container_length| {
|
||||
value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue