Regenerate bindings. draft
authorCameron McCormack <cam@mcc.id.au>
Sun, 04 Dec 2016 23:16:01 -1000
changeset 447490 c2b84d02fd20fb2253d863bc76be64bd7a69f291
parent 447489 aa06cbe7c9851c1d19b646801e7989c73c58b43d
child 539038 195f85695bac726ca6ba93a87231c4d1eeb7b594
push id38065
push userbmo:cam@mcc.id.au
push dateMon, 05 Dec 2016 09:22:59 +0000
milestone53.0a1
Regenerate bindings. MozReview-Commit-ID: KBoUJL9nbMk
servo/components/style/gecko_bindings/bindings.rs
servo/components/style/gecko_bindings/structs_debug.rs
servo/components/style/gecko_bindings/structs_release.rs
--- 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;