From 7d5786c3210d18df7f8ad70317c28c31c2de5b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 1 Nov 2017 18:00:50 -0500 Subject: [PATCH] servo: Merge #19090 - stylo: Remove useless assertions (from emilio:useless-assert); r=bzbarsky ElementStyles::primary expect()s. Source-Repo: https://github.com/servo/servo Source-Revision: cc53189e67da316eba18aa09b759c0d858dd9e17 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : ad2a60d95a34bebdb02115d63c0d145e7a190703 --- servo/ports/geckolib/glue.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/servo/ports/geckolib/glue.rs b/servo/ports/geckolib/glue.rs index c2e38e5379a9..c22aded7b08f 100644 --- a/servo/ports/geckolib/glue.rs +++ b/servo/ports/geckolib/glue.rs @@ -965,7 +965,6 @@ pub extern "C" fn Servo_Element_GetPrimaryComputedValues(element: RawGeckoElemen { let element = GeckoElement(element); let data = element.borrow_data().expect("Getting CVs on unstyled element"); - assert!(data.has_styles(), "Getting CVs on unstyled element"); data.styles.primary().clone().into() } @@ -3455,8 +3454,6 @@ pub extern "C" fn Servo_ResolveStyle( let data = element.borrow_data().expect("Resolving style on unstyled element"); - // TODO(emilio): Downgrade to debug assertions when close to release. - assert!(data.has_styles(), "Resolving style on unstyled element"); debug_assert!(element.has_current_styles(&*data), "Resolving style on {:?} without current styles: {:?}", element, data); data.styles.primary().clone().into()