mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
8f152563dd
commit
9d0023873e
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue