mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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) => {
|
||||
assert!(rect.start.b + rect.size.block != float_b,
|
||||
"Non-terminating float placement");
|
||||
assert_ne!(rect.start.b + rect.size.block, float_b,
|
||||
"Non-terminating float placement");
|
||||
|
||||
// Place here if there is enough room
|
||||
if rect.size.inline >= info.size.inline {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue