diff options
author | Cameron McCormack <cam@mcc.id.au> | 2017-02-10 10:23:36 +0800 |
---|---|---|
committer | Cameron McCormack <cam@mcc.id.au> | 2017-02-10 10:24:04 +0800 |
commit | 2dc9166256e7fbfda290283a79b7289d634fb565 (patch) | |
tree | da531eab7b2c386b966fe3a4080ae327b6d86968 | |
parent | 57e1b25cbd4f3de64ad783c4332ee7075423526d (diff) | |
download | servo-2dc9166256e7fbfda290283a79b7289d634fb565.tar.gz servo-2dc9166256e7fbfda290283a79b7289d634fb565.zip |
stylo: Remove Servo_Element_ShouldTraverse.
-rw-r--r-- | components/style/gecko_bindings/bindings.rs | 4 | ||||
-rw-r--r-- | ports/geckolib/glue.rs | 18 |
2 files changed, 0 insertions, 22 deletions
diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index b3295e928cb..11bc35897ac 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -1130,10 +1130,6 @@ extern "C" { pub fn Servo_Element_ClearData(node: RawGeckoElementBorrowed); } extern "C" { - pub fn Servo_Element_ShouldTraverse(node: RawGeckoElementBorrowed) - -> bool; -} -extern "C" { pub fn Servo_StyleSheet_Empty(parsing_mode: SheetParsingMode) -> RawServoStyleSheetStrong; } diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index c754da42e79..d15fefc6bdb 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -348,24 +348,6 @@ pub extern "C" fn Servo_Element_ClearData(element: RawGeckoElementBorrowed) -> ( } #[no_mangle] -pub extern "C" fn Servo_Element_ShouldTraverse(element: RawGeckoElementBorrowed) -> bool { - let element = GeckoElement(element); - debug_assert!(!element.has_dirty_descendants(), - "only call Servo_Element_ShouldTraverse if you know the element \ - does not have dirty descendants"); - let result = match element.borrow_data() { - // Note that we check for has_restyle here rather than has_current_styles, - // because we also want the traversal code to trigger if there's restyle - // damage. We really only need the Gecko post-traversal in that case, so - // the servo traversal will be a no-op, but it's cheap enough that we - // don't bother distinguishing the two cases. - Some(d) => !d.has_styles() || d.has_restyle(), - None => true, - }; - result -} - -#[no_mangle] pub extern "C" fn Servo_StyleSheet_Empty(mode: SheetParsingMode) -> RawServoStyleSheetStrong { let url = ServoUrl::parse("about:blank").unwrap(); let extra_data = ParserContextExtraData::default(); |