mirror of
https://github.com/servo/servo.git
synced 2025-10-02 01:29:15 +01:00
switch gecko_bindings over to the gecko_debug feature
...so that they use the correct Gecko structs regardless of whether Rust code is being compiled with debug assertions or not.
This commit is contained in:
parent
93fa0ae1e3
commit
7c6fda8ea9
7 changed files with 16 additions and 8 deletions
|
@ -1982,7 +1982,7 @@ pub extern "C" fn Servo_GetComputedKeyframeValues(keyframes: RawGeckoKeyframeLis
|
|||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_AssertTreeIsClean(root: RawGeckoElementBorrowed) {
|
||||
if !cfg!(debug_assertions) {
|
||||
if !cfg!(feature = "gecko_debug") {
|
||||
panic!("Calling Servo_AssertTreeIsClean in release build");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue