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
This commit is contained in:
Emilio Cobos Álvarez 2017-07-22 01:33:33 +02:00
parent 8f152563dd
commit 9d0023873e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

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