Do RestyleHint assertions at runtime so they use build-time bindgen.

This commit is contained in:
Cameron McCormack 2017-02-14 10:38:59 +08:00
parent d44bf6182f
commit 229eb93fa3
3 changed files with 38 additions and 35 deletions

View file

@ -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]