mirror of
https://github.com/servo/servo.git
synced 2025-06-22 08:08:59 +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.
|
||||
assert!(data.has_styles(), "Resolving style on unstyled element");
|
||||
assert!(element.has_current_styles(&*data),
|
||||
"Resolving style on element without current styles");
|
||||
debug_assert!(element.has_current_styles(&*data),
|
||||
"Resolving style on element without current styles");
|
||||
data.styles.primary().clone().into_strong()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue