diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 368623c3dd5..bd7d263e159 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -511,12 +511,6 @@ extern "C" { extern "C" { pub fn Servo_StyleSet_Drop(ptr: RawServoStyleSetOwned); } -extern "C" { - pub fn Gecko_ChildrenCount(node: RawGeckoNodeBorrowed) -> u32; -} -extern "C" { - pub fn Gecko_NodeIsElement(node: RawGeckoNodeBorrowed) -> bool; -} extern "C" { pub fn Gecko_IsInDocument(node: RawGeckoNodeBorrowed) -> bool; } @@ -595,9 +589,6 @@ extern "C" { extern "C" { pub fn Gecko_DocumentState(aDocument: *const nsIDocument) -> u64; } -extern "C" { - pub fn Gecko_IsTextNode(node: RawGeckoNodeBorrowed) -> bool; -} extern "C" { pub fn Gecko_IsRootElement(element: RawGeckoElementBorrowed) -> bool; } @@ -605,16 +596,9 @@ extern "C" { pub fn Gecko_MatchesElement(type_: CSSPseudoClassType, element: RawGeckoElementBorrowed) -> bool; } -extern "C" { - pub fn Gecko_LocalName(element: RawGeckoElementBorrowed) -> *mut nsIAtom; -} extern "C" { pub fn Gecko_Namespace(element: RawGeckoElementBorrowed) -> *mut nsIAtom; } -extern "C" { - pub fn Gecko_GetElementId(element: RawGeckoElementBorrowed) - -> *mut nsIAtom; -} extern "C" { pub fn Gecko_MatchLang(element: RawGeckoElementBorrowed, override_lang: *mut nsIAtom, @@ -1073,9 +1057,6 @@ extern "C" { type_: nsStyleContentType) -> *mut nsStyleContentData_CounterFunction; } -extern "C" { - pub fn Gecko_GetNodeFlags(node: RawGeckoNodeBorrowed) -> u32; -} extern "C" { pub fn Gecko_SetNodeFlags(node: RawGeckoNodeBorrowed, flags: u32); } @@ -1105,10 +1086,6 @@ extern "C" { any_style_changed: *mut bool) -> nsChangeHint; } -extern "C" { - pub fn Gecko_HintsHandledForDescendants(aHint: nsChangeHint) - -> nsChangeHint; -} extern "C" { pub fn Gecko_GetElementSnapshot(table: *const ServoElementSnapshotTable, element: RawGeckoElementBorrowed) diff --git a/components/style/gecko/restyle_damage.rs b/components/style/gecko/restyle_damage.rs index b0f60663067..c5b10737d8e 100644 --- a/components/style/gecko/restyle_damage.rs +++ b/components/style/gecko/restyle_damage.rs @@ -100,15 +100,6 @@ impl GeckoRestyleDamage { pub fn reconstruct() -> Self { GeckoRestyleDamage(structs::nsChangeHint_nsChangeHint_ReconstructFrame) } - - /// Assuming |self| is applied to an element, returns the set of damage that - /// would be superfluous to apply for descendants. - pub fn handled_for_descendants(self) -> Self { - let hint = unsafe { - bindings::Gecko_HintsHandledForDescendants(self.0) - }; - GeckoRestyleDamage(hint) - } } impl Default for GeckoRestyleDamage { diff --git a/components/style/servo/restyle_damage.rs b/components/style/servo/restyle_damage.rs index 0be480a2424..1b7e4636e13 100644 --- a/components/style/servo/restyle_damage.rs +++ b/components/style/servo/restyle_damage.rs @@ -135,11 +135,6 @@ impl ServoRestyleDamage { } } } - - /// Servo doesn't implement this optimization. - pub fn handled_for_descendants(self) -> Self { - Self::empty() - } } impl Default for ServoRestyleDamage {