mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update Stylo bindings
This commit is contained in:
parent
8144aa1163
commit
f6fe439d1e
5 changed files with 38 additions and 3 deletions
|
@ -37,6 +37,9 @@
|
||||||
pseudo_element!(":backdrop",
|
pseudo_element!(":backdrop",
|
||||||
atom!(":backdrop"),
|
atom!(":backdrop"),
|
||||||
false);
|
false);
|
||||||
|
pseudo_element!(":cue",
|
||||||
|
atom!(":cue"),
|
||||||
|
false);
|
||||||
pseudo_element!(":first-letter",
|
pseudo_element!(":first-letter",
|
||||||
atom!(":first-letter"),
|
atom!(":first-letter"),
|
||||||
false);
|
false);
|
||||||
|
|
|
@ -188,6 +188,7 @@ use gecko_bindings::structs::Loader;
|
||||||
use gecko_bindings::structs::ServoStyleSheet;
|
use gecko_bindings::structs::ServoStyleSheet;
|
||||||
use gecko_bindings::structs::EffectCompositor_CascadeLevel;
|
use gecko_bindings::structs::EffectCompositor_CascadeLevel;
|
||||||
use gecko_bindings::structs::UpdateAnimationsTasks;
|
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 nsTArrayBorrowed_uintptr_t<'a> = &'a mut ::gecko_bindings::structs::nsTArray<usize>;
|
||||||
pub type ServoCssRulesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoCssRules>;
|
pub type ServoCssRulesStrong = ::gecko_bindings::sugar::ownership::Strong<ServoCssRules>;
|
||||||
pub type ServoCssRulesBorrowed<'a> = &'a ServoCssRules;
|
pub type ServoCssRulesBorrowed<'a> = &'a ServoCssRules;
|
||||||
|
@ -1817,8 +1818,9 @@ extern "C" {
|
||||||
property: *const nsACString,
|
property: *const nsACString,
|
||||||
value: *const nsACString,
|
value: *const nsACString,
|
||||||
is_important: bool,
|
is_important: bool,
|
||||||
data: *mut RawGeckoURLExtraData)
|
data: *mut RawGeckoURLExtraData,
|
||||||
-> bool;
|
length_parsing_mode:
|
||||||
|
LengthParsingMode) -> bool;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Servo_DeclarationBlock_SetPropertyById(declarations:
|
pub fn Servo_DeclarationBlock_SetPropertyById(declarations:
|
||||||
|
@ -1827,7 +1829,9 @@ extern "C" {
|
||||||
value: *const nsACString,
|
value: *const nsACString,
|
||||||
is_important: bool,
|
is_important: bool,
|
||||||
data:
|
data:
|
||||||
*mut RawGeckoURLExtraData)
|
*mut RawGeckoURLExtraData,
|
||||||
|
length_parsing_mode:
|
||||||
|
LengthParsingMode)
|
||||||
-> bool;
|
-> bool;
|
||||||
}
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -6126,6 +6126,13 @@ pub mod root {
|
||||||
"Alignment of field: " , stringify ! ( URLExtraData )
|
"Alignment of field: " , stringify ! ( URLExtraData )
|
||||||
, "::" , stringify ! ( mPrincipal ) ));
|
, "::" , 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)]
|
#[repr(u32)]
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||||
pub enum ArenaObjectID {
|
pub enum ArenaObjectID {
|
||||||
|
@ -6653,6 +6660,9 @@ pub mod root {
|
||||||
root::mozilla::UpdateAnimationsTasks =
|
root::mozilla::UpdateAnimationsTasks =
|
||||||
8;
|
8;
|
||||||
pub type UpdateAnimationsTasks = u8;
|
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 type CSSPseudoElementTypeBase = u8;
|
||||||
pub const CSSPseudoElementType_InheritingAnonBox:
|
pub const CSSPseudoElementType_InheritingAnonBox:
|
||||||
root::mozilla::CSSPseudoElementType =
|
root::mozilla::CSSPseudoElementType =
|
||||||
|
|
|
@ -6029,6 +6029,13 @@ pub mod root {
|
||||||
"Alignment of field: " , stringify ! ( URLExtraData )
|
"Alignment of field: " , stringify ! ( URLExtraData )
|
||||||
, "::" , stringify ! ( mPrincipal ) ));
|
, "::" , 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)]
|
#[repr(u32)]
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||||
pub enum ArenaObjectID {
|
pub enum ArenaObjectID {
|
||||||
|
@ -6556,6 +6563,9 @@ pub mod root {
|
||||||
root::mozilla::UpdateAnimationsTasks =
|
root::mozilla::UpdateAnimationsTasks =
|
||||||
8;
|
8;
|
||||||
pub type UpdateAnimationsTasks = u8;
|
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 type CSSPseudoElementTypeBase = u8;
|
||||||
pub const CSSPseudoElementType_InheritingAnonBox:
|
pub const CSSPseudoElementType_InheritingAnonBox:
|
||||||
root::mozilla::CSSPseudoElementType =
|
root::mozilla::CSSPseudoElementType =
|
||||||
|
|
|
@ -4790,6 +4790,8 @@ cfg_if! {
|
||||||
pub static nsCSSPseudoElements_before: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_before: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "_ZN19nsCSSPseudoElements8backdropE"]
|
#[link_name = "_ZN19nsCSSPseudoElements8backdropE"]
|
||||||
pub static nsCSSPseudoElements_backdrop: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_backdrop: *mut nsICSSPseudoElement;
|
||||||
|
#[link_name = "_ZN19nsCSSPseudoElements3cueE"]
|
||||||
|
pub static nsCSSPseudoElements_cue: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "_ZN19nsCSSPseudoElements11firstLetterE"]
|
#[link_name = "_ZN19nsCSSPseudoElements11firstLetterE"]
|
||||||
pub static nsCSSPseudoElements_firstLetter: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_firstLetter: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "_ZN19nsCSSPseudoElements9firstLineE"]
|
#[link_name = "_ZN19nsCSSPseudoElements9firstLineE"]
|
||||||
|
@ -9721,6 +9723,8 @@ cfg_if! {
|
||||||
pub static nsCSSPseudoElements_before: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_before: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "?backdrop@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
|
#[link_name = "?backdrop@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
|
||||||
pub static nsCSSPseudoElements_backdrop: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_backdrop: *mut nsICSSPseudoElement;
|
||||||
|
#[link_name = "?cue@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
|
||||||
|
pub static nsCSSPseudoElements_cue: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "?firstLetter@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
|
#[link_name = "?firstLetter@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
|
||||||
pub static nsCSSPseudoElements_firstLetter: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_firstLetter: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "?firstLine@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
|
#[link_name = "?firstLine@nsCSSPseudoElements@@2PEAVnsICSSPseudoElement@@EA"]
|
||||||
|
@ -14652,6 +14656,8 @@ cfg_if! {
|
||||||
pub static nsCSSPseudoElements_before: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_before: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "\x01?backdrop@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
|
#[link_name = "\x01?backdrop@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
|
||||||
pub static nsCSSPseudoElements_backdrop: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_backdrop: *mut nsICSSPseudoElement;
|
||||||
|
#[link_name = "\x01?cue@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
|
||||||
|
pub static nsCSSPseudoElements_cue: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "\x01?firstLetter@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
|
#[link_name = "\x01?firstLetter@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
|
||||||
pub static nsCSSPseudoElements_firstLetter: *mut nsICSSPseudoElement;
|
pub static nsCSSPseudoElements_firstLetter: *mut nsICSSPseudoElement;
|
||||||
#[link_name = "\x01?firstLine@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
|
#[link_name = "\x01?firstLine@nsCSSPseudoElements@@2PAVnsICSSPseudoElement@@A"]
|
||||||
|
@ -19586,6 +19592,8 @@ macro_rules! atom {
|
||||||
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_before as *mut _) } };
|
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_before as *mut _) } };
|
||||||
(":backdrop") =>
|
(":backdrop") =>
|
||||||
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_backdrop as *mut _) } };
|
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_backdrop as *mut _) } };
|
||||||
|
(":cue") =>
|
||||||
|
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_cue as *mut _) } };
|
||||||
(":first-letter") =>
|
(":first-letter") =>
|
||||||
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_firstLetter as *mut _) } };
|
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsCSSPseudoElements_firstLetter as *mut _) } };
|
||||||
(":first-line") =>
|
(":first-line") =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue