Skip to content

Commit

Permalink
stylo: Assert that we have computed style in Servo_ResolveStyle when …
Browse files Browse the repository at this point in the history
…lazy computation is forbidden.
  • Loading branch information
heycam committed Apr 12, 2017
1 parent 065f500 commit 50e4bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ports/geckolib/glue.rs
Expand Up @@ -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();
}
Expand Down

0 comments on commit 50e4bb5

Please sign in to comment.