mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden.
This commit is contained in:
parent
065f50014f
commit
50e4bb5d0c
1 changed files with 2 additions and 1 deletions
|
@ -1654,7 +1654,8 @@ pub extern "C" fn Servo_ResolveStyle(element: RawGeckoElementBorrowed,
|
|||
};
|
||||
|
||||
if !valid_styles {
|
||||
warn!("Resolving style on element without current styles with lazy computation forbidden.");
|
||||
debug_assert!(false, "Resolving style on element without current styles with lazy \
|
||||
computation forbidden.");
|
||||
let per_doc_data = PerDocumentStyleData::from_ffi(raw_data).borrow();
|
||||
return per_doc_data.default_computed_values().clone().into_strong();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue