Stop aborting release builds if we've missed invalidations before calling Servo_ResolveStyle.

This commit is contained in:
Bobby Holley 2017-07-17 11:49:55 -07:00
parent 66b9544d60
commit f3a42d9977

View file

@ -2781,7 +2781,7 @@ 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()
} }