mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Do RestyleHint assertions at runtime so they use build-time bindgen.
This commit is contained in:
parent
d44bf6182f
commit
229eb93fa3
3 changed files with 38 additions and 35 deletions
|
@ -68,7 +68,7 @@ use style::properties::{ComputedValues, Importance, PropertyDeclaration};
|
|||
use style::properties::{PropertyDeclarationParseResult, PropertyDeclarationBlock, PropertyId};
|
||||
use style::properties::animated_properties::{AnimationValue, Interpolate, TransitionProperty};
|
||||
use style::properties::parse_one_declaration;
|
||||
use style::restyle_hints::RestyleHint;
|
||||
use style::restyle_hints::{self, RestyleHint};
|
||||
use style::selector_parser::PseudoElementCascadeType;
|
||||
use style::sequential;
|
||||
use style::string_cache::Atom;
|
||||
|
@ -98,6 +98,9 @@ pub extern "C" fn Servo_Initialize() -> () {
|
|||
|
||||
// Pretend that we're a Servo Layout thread, to make some assertions happy.
|
||||
thread_state::initialize(thread_state::LAYOUT);
|
||||
|
||||
// Perform some debug-only runtime assertions.
|
||||
restyle_hints::assert_restyle_hints_match();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue