Update Stylo bindings

This commit is contained in:
J. Ryan Stinnett 2017-04-14 16:09:46 +08:00
parent 8144aa1163
commit f6fe439d1e
5 changed files with 38 additions and 3 deletions

View file

@ -188,6 +188,7 @@ use gecko_bindings::structs::Loader;
use gecko_bindings::structs::ServoStyleSheet;
use gecko_bindings::structs::EffectCompositor_CascadeLevel;
use gecko_bindings::structs::UpdateAnimationsTasks;
use gecko_bindings::structs::LengthParsingMode;
pub type nsTArrayBorrowed_uintptr_t<'a> = &'a mut ::gecko_bindings::structs::nsTArray<usize>;
pub type ServoCssRulesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoCssRules>;
pub type ServoCssRulesBorrowed<'a> = &'a ServoCssRules;
@ -1817,8 +1818,9 @@ extern "C" {
property: *const nsACString,
value: *const nsACString,
is_important: bool,
data: *mut RawGeckoURLExtraData)
-> bool;
data: *mut RawGeckoURLExtraData,
length_parsing_mode:
LengthParsingMode) -> bool;
}
extern "C" {
pub fn Servo_DeclarationBlock_SetPropertyById(declarations:
@ -1827,7 +1829,9 @@ extern "C" {
value: *const nsACString,
is_important: bool,
data:
*mut RawGeckoURLExtraData)
*mut RawGeckoURLExtraData,
length_parsing_mode:
LengthParsingMode)
-> bool;
}
extern "C" {

View file

@ -6126,6 +6126,13 @@ pub mod root {
"Alignment of field: " , stringify ! ( URLExtraData )
, "::" , stringify ! ( mPrincipal ) ));
}
pub mod dmd {
#[allow(unused_imports)]
use self::super::super::super::root;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSONWriteFunc([u8; 0]);
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ArenaObjectID {
@ -6653,6 +6660,9 @@ pub mod root {
root::mozilla::UpdateAnimationsTasks =
8;
pub type UpdateAnimationsTasks = u8;
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum LengthParsingMode { Default = 0, SVG = 1, }
pub type CSSPseudoElementTypeBase = u8;
pub const CSSPseudoElementType_InheritingAnonBox:
root::mozilla::CSSPseudoElementType =

View file

@ -6029,6 +6029,13 @@ pub mod root {
"Alignment of field: " , stringify ! ( URLExtraData )
, "::" , stringify ! ( mPrincipal ) ));
}
pub mod dmd {
#[allow(unused_imports)]
use self::super::super::super::root;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSONWriteFunc([u8; 0]);
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum ArenaObjectID {
@ -6556,6 +6563,9 @@ pub mod root {
root::mozilla::UpdateAnimationsTasks =
8;
pub type UpdateAnimationsTasks = u8;
#[repr(i32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum LengthParsingMode { Default = 0, SVG = 1, }
pub type CSSPseudoElementTypeBase = u8;
pub const CSSPseudoElementType_InheritingAnonBox:
root::mozilla::CSSPseudoElementType =