Regenerate bindings.
draft
--- a/servo/components/style/gecko_bindings/bindings.rs
+++ b/servo/components/style/gecko_bindings/bindings.rs
@@ -62,17 +62,17 @@ pub type ServoElementSnapshotBorrowedMut
pub type ServoElementSnapshotOwned = ::gecko_bindings::sugar::ownership::Owned<ServoElementSnapshot>;
pub type ServoElementSnapshotBorrowedOrNull<'a> = Option<&'a ServoElementSnapshot>;
pub type ServoElementSnapshotBorrowedMutOrNull<'a> = Option<&'a mut ServoElementSnapshot>;
pub type ServoElementSnapshotOwnedOrNull = ::gecko_bindings::sugar::ownership::OwnedOrNull<ServoElementSnapshot>;
use gecko_bindings::structs::Element;
use gecko_bindings::structs::FontFamilyList;
use gecko_bindings::structs::FontFamilyType;
use gecko_bindings::structs::ServoElementSnapshot;
-use gecko_bindings::structs::SheetParsingMode;
+use gecko_bindings::structs::SheetType;
use gecko_bindings::structs::StyleBasicShape;
use gecko_bindings::structs::StyleBasicShapeType;
use gecko_bindings::structs::StyleClipPath;
use gecko_bindings::structs::nsCSSKeyword;
use gecko_bindings::structs::nsCSSShadowArray;
use gecko_bindings::structs::nsCSSValue;
use gecko_bindings::structs::nsCSSValueSharedList;
use gecko_bindings::structs::nsChangeHint;
@@ -970,22 +970,22 @@ extern "C" {
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)
+ pub fn Servo_StyleSheet_Empty(sheet_type: SheetType)
-> RawServoStyleSheetStrong;
}
extern "C" {
pub fn Servo_StyleSheet_FromUTF8Bytes(data: *const nsACString_internal,
- parsing_mode: SheetParsingMode,
+ sheet_type: SheetType,
base_url:
*const nsACString_internal,
base: *mut ThreadSafeURIHolder,
referrer: *mut ThreadSafeURIHolder,
principal:
*mut ThreadSafePrincipalHolder)
-> RawServoStyleSheetStrong;
}
--- a/servo/components/style/gecko_bindings/structs_debug.rs
+++ b/servo/components/style/gecko_bindings/structs_debug.rs
@@ -6020,44 +6020,16 @@ pub type nsCOMArray_nsCOMArrayEnumFunc<T
*mut ::std::os::raw::c_void)
-> bool>;
pub type nsCOMArray_nsCOMArrayComparatorFunc<T> =
::std::option::Option<unsafe extern "C" fn(aElement1: *mut T,
aElement2: *mut T,
aData:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
-#[repr(u32)]
-/**
- * Enum defining the mode in which a sheet is to be parsed. This is
- * usually, but not always, the same as the cascade level at which the
- * sheet will apply (see nsStyleSet.h). Most of the Loader APIs only
- * support loading of author sheets.
- *
- * Author sheets are the normal case: styles embedded in or linked
- * from HTML pages. They are also the most restricted.
- *
- * User sheets can do anything author sheets can do, and also get
- * access to a few CSS extensions that are not yet suitable for
- * exposure on the public Web, but are very useful for expressing
- * user style overrides, such as @-moz-document rules.
- *
- * Agent sheets have access to all author- and user-sheet features
- * plus more extensions that are necessary for internal use but,
- * again, not yet suitable for exposure on the public Web. Some of
- * these are outright unsafe to expose; in particular, incorrect
- * styling of anonymous box pseudo-elements can violate layout
- * invariants.
- */
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
-pub enum SheetParsingMode {
- eAuthorSheetFeatures = 0,
- eUserSheetFeatures = 1,
- eAgentSheetFeatures = 2,
-}
#[repr(C)]
#[derive(Debug)]
pub struct nsAttrValue {
pub mBits: usize,
}
pub type nsAttrValue_AtomArray = nsTArray<nsCOMPtr<nsIAtom>>;
pub const nsAttrValue_ValueType_eSVGTypesBegin: nsAttrValue_ValueType =
nsAttrValue_ValueType::eSVGAngle;
--- a/servo/components/style/gecko_bindings/structs_release.rs
+++ b/servo/components/style/gecko_bindings/structs_release.rs
@@ -5963,44 +5963,16 @@ pub type nsCOMArray_nsCOMArrayEnumFunc<T
*mut ::std::os::raw::c_void)
-> bool>;
pub type nsCOMArray_nsCOMArrayComparatorFunc<T> =
::std::option::Option<unsafe extern "C" fn(aElement1: *mut T,
aElement2: *mut T,
aData:
*mut ::std::os::raw::c_void)
-> ::std::os::raw::c_int>;
-#[repr(u32)]
-/**
- * Enum defining the mode in which a sheet is to be parsed. This is
- * usually, but not always, the same as the cascade level at which the
- * sheet will apply (see nsStyleSet.h). Most of the Loader APIs only
- * support loading of author sheets.
- *
- * Author sheets are the normal case: styles embedded in or linked
- * from HTML pages. They are also the most restricted.
- *
- * User sheets can do anything author sheets can do, and also get
- * access to a few CSS extensions that are not yet suitable for
- * exposure on the public Web, but are very useful for expressing
- * user style overrides, such as @-moz-document rules.
- *
- * Agent sheets have access to all author- and user-sheet features
- * plus more extensions that are necessary for internal use but,
- * again, not yet suitable for exposure on the public Web. Some of
- * these are outright unsafe to expose; in particular, incorrect
- * styling of anonymous box pseudo-elements can violate layout
- * invariants.
- */
-#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
-pub enum SheetParsingMode {
- eAuthorSheetFeatures = 0,
- eUserSheetFeatures = 1,
- eAgentSheetFeatures = 2,
-}
#[repr(C)]
#[derive(Debug)]
pub struct nsAttrValue {
pub mBits: usize,
}
pub type nsAttrValue_AtomArray = nsTArray<nsCOMPtr<nsIAtom>>;
pub const nsAttrValue_ValueType_eSVGTypesBegin: nsAttrValue_ValueType =
nsAttrValue_ValueType::eSVGAngle;