mirror of
https://github.com/servo/servo.git
synced 2025-06-22 08:08:59 +01:00
Auto merge of #18095 - emilio:unused, r=bholley
stylo: Remove some unused FFI functions. Bug: 1390650 Reviewed-by: bholley MozReview-Commit-ID: K9fXGRmgkr4 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18095) <!-- Reviewable:end -->
This commit is contained in:
commit
eba896157e
3 changed files with 0 additions and 37 deletions
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue