From 9d0023873e0b15c0fa295b5a85015630845c0e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 22 Jul 2017 01:33:33 +0200 Subject: [PATCH] stylo: Improve the information the "styles not up-to-date" assertion gives back. Always I end up debugging it I end up adding a bunch of printlns near it. This should be clearer. MozReview-Commit-ID: ITpfi9tXAw3 --- ports/geckolib/glue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index be1cb1005ef..99e6ef6d259 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -2813,7 +2813,7 @@ pub extern "C" fn Servo_ResolveStyle(element: RawGeckoElementBorrowed, TraversalFlags::empty() }; debug_assert!(element.has_current_styles_for_traversal(&*data, flags), - "Resolving style on element without current styles"); + "Resolving style on {:?} without current styles: {:?}", element, data); data.styles.primary().clone().into() }