mirror of
https://github.com/servo/servo.git
synced 2025-06-23 00:24:35 +01:00
Stop aborting release builds if we've missed invalidations before calling Servo_ResolveStyle.
This commit is contained in:
parent
66b9544d60
commit
f3a42d9977
1 changed files with 2 additions and 2 deletions
|
@ -2781,8 +2781,8 @@ pub extern "C" fn Servo_ResolveStyle(element: RawGeckoElementBorrowed,
|
||||||
|
|
||||||
// TODO(emilio): Downgrade to debug assertions when close to release.
|
// TODO(emilio): Downgrade to debug assertions when close to release.
|
||||||
assert!(data.has_styles(), "Resolving style on unstyled element");
|
assert!(data.has_styles(), "Resolving style on unstyled element");
|
||||||
assert!(element.has_current_styles(&*data),
|
debug_assert!(element.has_current_styles(&*data),
|
||||||
"Resolving style on element without current styles");
|
"Resolving style on element without current styles");
|
||||||
data.styles.primary().clone().into_strong()
|
data.styles.primary().clone().into_strong()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue