mirror of
https://github.com/servo/servo.git
synced 2025-07-26 00:30:22 +01:00
Use specific negative assertion for layout floats
This commit is contained in:
parent
73bc7a81e9
commit
baccc4eda2
1 changed files with 2 additions and 2 deletions
|
@ -364,8 +364,8 @@ impl Floats {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(rect) => {
|
Some(rect) => {
|
||||||
assert!(rect.start.b + rect.size.block != float_b,
|
assert_ne!(rect.start.b + rect.size.block, float_b,
|
||||||
"Non-terminating float placement");
|
"Non-terminating float placement");
|
||||||
|
|
||||||
// Place here if there is enough room
|
// Place here if there is enough room
|
||||||
if rect.size.inline >= info.size.inline {
|
if rect.size.inline >= info.size.inline {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue