зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #14909 - stylo: update bindings (from heycam:bindings-update-16); r=Manishearth
Bindings update for https://treeherder.mozilla.org/#/jobs?repo=stylo&revision=5a96506c9435a414d37308298f526d25ea402607. r? @Manishearth Source-Repo: https://github.com/servo/servo Source-Revision: 6a9e2fd7fb2b985909efeb71ed050c19bb2818d3
This commit is contained in:
Родитель
26a529e35c
Коммит
bd3880c9ef
|
@ -244,7 +244,6 @@ mod bindings {
|
|||
"NODE_.*",
|
||||
"NS_FONT_.*",
|
||||
"NS_STYLE_.*",
|
||||
"NS_CORNER_.*",
|
||||
"NS_RADIUS_.*",
|
||||
"BORDER_COLOR_.*",
|
||||
"BORDER_STYLE_.*"
|
||||
|
@ -256,6 +255,7 @@ mod bindings {
|
|||
"mozilla::ConsumeStyleBehavior",
|
||||
"mozilla::CSSPseudoClassType",
|
||||
"mozilla::css::SheetParsingMode",
|
||||
"mozilla::HalfCorner",
|
||||
"mozilla::TraversalRootBehavior",
|
||||
"mozilla::DisplayItemClip", // Needed because bindgen generates
|
||||
// specialization tests for this even
|
||||
|
@ -279,6 +279,7 @@ mod bindings {
|
|||
"gfxFontFeature",
|
||||
"gfxFontVariation",
|
||||
"GridNamedArea",
|
||||
"HalfCorner",
|
||||
"Image",
|
||||
"ImageURL",
|
||||
"nsAttrName",
|
||||
|
|
|
@ -631,6 +631,11 @@ extern "C" {
|
|||
layer_type:
|
||||
nsStyleImageLayers_LayerType);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_EnsureStyleAnimationArrayLength(array:
|
||||
*mut ::std::os::raw::c_void,
|
||||
len: usize);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_ResetStyleCoord(unit: *mut nsStyleUnit,
|
||||
value: *mut nsStyleUnion);
|
||||
|
|
|
@ -226,14 +226,6 @@ pub mod root {
|
|||
250;
|
||||
pub const NS_FONT_VARIANT_NORMAL: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_FONT_VARIANT_SMALL_CAPS: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_CORNER_TOP_LEFT_X: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_CORNER_TOP_LEFT_Y: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_CORNER_TOP_RIGHT_X: ::std::os::raw::c_uint = 2;
|
||||
pub const NS_CORNER_TOP_RIGHT_Y: ::std::os::raw::c_uint = 3;
|
||||
pub const NS_CORNER_BOTTOM_RIGHT_X: ::std::os::raw::c_uint = 4;
|
||||
pub const NS_CORNER_BOTTOM_RIGHT_Y: ::std::os::raw::c_uint = 5;
|
||||
pub const NS_CORNER_BOTTOM_LEFT_X: ::std::os::raw::c_uint = 6;
|
||||
pub const NS_CORNER_BOTTOM_LEFT_Y: ::std::os::raw::c_uint = 7;
|
||||
pub const NS_STYLE_STACK_SIZING_IGNORE: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_STACK_SIZING_STRETCH_TO_FIT: ::std::os::raw::c_uint =
|
||||
1;
|
||||
|
@ -761,9 +753,6 @@ pub mod root {
|
|||
pub const NS_STYLE_WORDBREAK_KEEP_ALL: ::std::os::raw::c_uint = 2;
|
||||
pub const NS_STYLE_OVERFLOWWRAP_NORMAL: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_OVERFLOWWRAP_BREAK_WORD: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_STYLE_HYPHENS_NONE: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_HYPHENS_MANUAL: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_STYLE_HYPHENS_AUTO: ::std::os::raw::c_uint = 2;
|
||||
pub const NS_STYLE_RUBY_ALIGN_START: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_RUBY_ALIGN_CENTER: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_STYLE_RUBY_ALIGN_SPACE_BETWEEN: ::std::os::raw::c_uint = 2;
|
||||
|
@ -1372,9 +1361,6 @@ pub mod root {
|
|||
impl Clone for AudioContext {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
pub const ReferrerPolicy_RP_Default:
|
||||
root::mozilla::dom::ReferrerPolicy =
|
||||
ReferrerPolicy::RP_No_Referrer_When_Downgrade;
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum ReferrerPolicy {
|
||||
|
@ -2332,6 +2318,7 @@ pub mod root {
|
|||
pub mTitle: ::nsstring::nsStringRepr,
|
||||
pub mDocument: *mut root::nsIDocument,
|
||||
pub mOwningNode: *mut root::nsINode,
|
||||
pub mMedia: root::RefPtr<root::nsMediaList>,
|
||||
pub mParsingMode: root::mozilla::css::SheetParsingMode,
|
||||
pub mType: root::StyleBackendType,
|
||||
pub mDisabled: bool,
|
||||
|
@ -2359,7 +2346,7 @@ pub mod root {
|
|||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleSheet() {
|
||||
assert_eq!(::std::mem::size_of::<StyleSheet>() , 88usize);
|
||||
assert_eq!(::std::mem::size_of::<StyleSheet>() , 96usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleSheet>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
|
@ -2378,6 +2365,18 @@ pub mod root {
|
|||
eSideBottom = 2,
|
||||
eSideLeft = 3,
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum HalfCorner {
|
||||
eCornerTopLeftX = 0,
|
||||
eCornerTopLeftY = 1,
|
||||
eCornerTopRightX = 2,
|
||||
eCornerTopRightY = 3,
|
||||
eCornerBottomRightX = 4,
|
||||
eCornerBottomRightY = 5,
|
||||
eCornerBottomLeftX = 6,
|
||||
eCornerBottomLeftY = 7,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct SVGAttrAnimationRuleProcessor {
|
||||
|
@ -2757,6 +2756,9 @@ pub mod root {
|
|||
pub enum StyleFloatEdge { ContentBox = 0, MarginBox = 1, }
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum StyleHyphens { None = 0, Manual = 1, Auto = 2, }
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum StyleShapeOutsideShapeBox {
|
||||
NoBox = 0,
|
||||
Content = 1,
|
||||
|
@ -3055,194 +3057,6 @@ pub mod root {
|
|||
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::RawServoStyleSet>>()
|
||||
, 1usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues {
|
||||
/**
|
||||
* Map of variable names to IDs. Variable IDs are indexes into
|
||||
* mVariables.
|
||||
*/
|
||||
pub mVariableIDs: [u64; 6usize],
|
||||
/**
|
||||
* Array of variables, indexed by variable ID.
|
||||
*/
|
||||
pub mVariables: root::nsTArray<root::mozilla::CSSVariableValues_Variable>,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues_Variable {
|
||||
pub mVariableName: ::nsstring::nsStringRepr,
|
||||
pub mValue: ::nsstring::nsStringRepr,
|
||||
pub mFirstToken: root::nsCSSTokenSerializationType,
|
||||
pub mLastToken: root::nsCSSTokenSerializationType,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues_Variable() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues_Variable>() ,
|
||||
40usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues_Variable>() ,
|
||||
8usize);
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues>() , 56usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct CounterStyle__bindgen_vtable {
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct CounterStyle {
|
||||
pub vtable_: *const CounterStyle__bindgen_vtable,
|
||||
pub mStyle: i32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CounterStyle() {
|
||||
assert_eq!(::std::mem::size_of::<CounterStyle>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<CounterStyle>() , 8usize);
|
||||
}
|
||||
impl Clone for CounterStyle {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
pub mod image {
|
||||
#[allow(unused_imports)]
|
||||
use self::super::super::super::root;
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ImageURL {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ImageURL {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Image {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for Image {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ProgressTracker {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ProgressTracker {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct IProgressObserver__bindgen_vtable {
|
||||
}
|
||||
/**
|
||||
* An interface for observing changes to image state, as reported by
|
||||
* ProgressTracker.
|
||||
*
|
||||
* This is the ImageLib-internal version of imgINotificationObserver,
|
||||
* essentially, with implementation details that code outside of ImageLib
|
||||
* shouldn't see.
|
||||
*
|
||||
* XXX(seth): It's preferable to avoid adding anything to this interface if
|
||||
* possible. In the long term, it would be ideal to get to a place where we can
|
||||
* just use the imgINotificationObserver interface internally as well.
|
||||
*/
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct IProgressObserver {
|
||||
pub vtable_: *const IProgressObserver__bindgen_vtable,
|
||||
pub _base: u64,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_IProgressObserver() {
|
||||
assert_eq!(::std::mem::size_of::<IProgressObserver>() ,
|
||||
16usize);
|
||||
assert_eq!(::std::mem::align_of::<IProgressObserver>() ,
|
||||
8usize);
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Position {
|
||||
pub mXPosition: root::mozilla::Position_Coord,
|
||||
pub mYPosition: root::mozilla::Position_Coord,
|
||||
}
|
||||
pub type Position_Coord = root::nsStyleCoord_CalcValue;
|
||||
#[test]
|
||||
fn bindgen_test_layout_Position() {
|
||||
assert_eq!(::std::mem::size_of::<Position>() , 24usize);
|
||||
assert_eq!(::std::mem::align_of::<Position>() , 4usize);
|
||||
}
|
||||
impl Clone for Position {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleTransition {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mProperty: root::nsCSSPropertyID,
|
||||
pub mUnknownProperty: root::nsCOMPtr<root::nsIAtom>,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleTransition() {
|
||||
assert_eq!(::std::mem::size_of::<StyleTransition>() , 40usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleTransition>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleAnimation {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mName: ::nsstring::nsStringRepr,
|
||||
pub mDirection: root::mozilla::dom::PlaybackDirection,
|
||||
pub mFillMode: root::mozilla::dom::FillMode,
|
||||
pub mPlayState: u8,
|
||||
pub mIterationCount: f32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleAnimation() {
|
||||
assert_eq!(::std::mem::size_of::<StyleAnimation>() , 64usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleAnimation>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleBasicShape {
|
||||
pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
|
||||
pub mType: root::mozilla::StyleBasicShapeType,
|
||||
pub mFillRule: root::mozilla::StyleFillRule,
|
||||
pub mCoordinates: root::nsTArray<root::nsStyleCoord>,
|
||||
pub mPosition: root::mozilla::Position,
|
||||
pub mRadius: root::nsStyleCorners,
|
||||
}
|
||||
pub type StyleBasicShape_HasThreadSafeRefCnt =
|
||||
root::mozilla::TrueType;
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleBasicShape() {
|
||||
assert_eq!(::std::mem::size_of::<StyleBasicShape>() , 120usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleBasicShape>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleShapeSource<ReferenceBox> {
|
||||
pub __bindgen_anon_1: root::mozilla::StyleShapeSource__bindgen_ty_1<ReferenceBox>,
|
||||
pub mType: root::mozilla::StyleShapeSourceType,
|
||||
pub mReferenceBox: ReferenceBox,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct StyleShapeSource__bindgen_ty_1<ReferenceBox> {
|
||||
pub mBasicShape: root::__BindgenUnionField<*mut root::mozilla::StyleBasicShape>,
|
||||
pub mURL: root::__BindgenUnionField<*mut root::mozilla::css::URLValue>,
|
||||
pub bindgen_union_field: u64,
|
||||
pub _phantom_0: ::std::marker::PhantomData<ReferenceBox>,
|
||||
}
|
||||
pub type StyleClipPath =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>;
|
||||
pub type StyleShapeOutside =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>;
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum CSSPseudoClassType {
|
||||
|
@ -3330,6 +3144,194 @@ pub mod root {
|
|||
NotPseudo = 81,
|
||||
MAX = 82,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues {
|
||||
/**
|
||||
* Map of variable names to IDs. Variable IDs are indexes into
|
||||
* mVariables.
|
||||
*/
|
||||
pub mVariableIDs: [u64; 6usize],
|
||||
/**
|
||||
* Array of variables, indexed by variable ID.
|
||||
*/
|
||||
pub mVariables: root::nsTArray<root::mozilla::CSSVariableValues_Variable>,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues_Variable {
|
||||
pub mVariableName: ::nsstring::nsStringRepr,
|
||||
pub mValue: ::nsstring::nsStringRepr,
|
||||
pub mFirstToken: root::nsCSSTokenSerializationType,
|
||||
pub mLastToken: root::nsCSSTokenSerializationType,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues_Variable() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues_Variable>() ,
|
||||
40usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues_Variable>() ,
|
||||
8usize);
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues>() , 56usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues>() , 8usize);
|
||||
}
|
||||
pub mod image {
|
||||
#[allow(unused_imports)]
|
||||
use self::super::super::super::root;
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ImageURL {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ImageURL {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Image {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for Image {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ProgressTracker {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ProgressTracker {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct IProgressObserver__bindgen_vtable {
|
||||
}
|
||||
/**
|
||||
* An interface for observing changes to image state, as reported by
|
||||
* ProgressTracker.
|
||||
*
|
||||
* This is the ImageLib-internal version of imgINotificationObserver,
|
||||
* essentially, with implementation details that code outside of ImageLib
|
||||
* shouldn't see.
|
||||
*
|
||||
* XXX(seth): It's preferable to avoid adding anything to this interface if
|
||||
* possible. In the long term, it would be ideal to get to a place where we can
|
||||
* just use the imgINotificationObserver interface internally as well.
|
||||
*/
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct IProgressObserver {
|
||||
pub vtable_: *const IProgressObserver__bindgen_vtable,
|
||||
pub _base: u64,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_IProgressObserver() {
|
||||
assert_eq!(::std::mem::size_of::<IProgressObserver>() ,
|
||||
16usize);
|
||||
assert_eq!(::std::mem::align_of::<IProgressObserver>() ,
|
||||
8usize);
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct CounterStyle__bindgen_vtable {
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct CounterStyle {
|
||||
pub vtable_: *const CounterStyle__bindgen_vtable,
|
||||
pub mStyle: i32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CounterStyle() {
|
||||
assert_eq!(::std::mem::size_of::<CounterStyle>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<CounterStyle>() , 8usize);
|
||||
}
|
||||
impl Clone for CounterStyle {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Position {
|
||||
pub mXPosition: root::mozilla::Position_Coord,
|
||||
pub mYPosition: root::mozilla::Position_Coord,
|
||||
}
|
||||
pub type Position_Coord = root::nsStyleCoord_CalcValue;
|
||||
#[test]
|
||||
fn bindgen_test_layout_Position() {
|
||||
assert_eq!(::std::mem::size_of::<Position>() , 24usize);
|
||||
assert_eq!(::std::mem::align_of::<Position>() , 4usize);
|
||||
}
|
||||
impl Clone for Position {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleTransition {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mProperty: root::nsCSSPropertyID,
|
||||
pub mUnknownProperty: root::nsCOMPtr<root::nsIAtom>,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleTransition() {
|
||||
assert_eq!(::std::mem::size_of::<StyleTransition>() , 40usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleTransition>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleAnimation {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mName: ::nsstring::nsStringRepr,
|
||||
pub mDirection: root::mozilla::dom::PlaybackDirection,
|
||||
pub mFillMode: root::mozilla::dom::FillMode,
|
||||
pub mPlayState: u8,
|
||||
pub mIterationCount: f32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleAnimation() {
|
||||
assert_eq!(::std::mem::size_of::<StyleAnimation>() , 64usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleAnimation>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleBasicShape {
|
||||
pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
|
||||
pub mType: root::mozilla::StyleBasicShapeType,
|
||||
pub mFillRule: root::mozilla::StyleFillRule,
|
||||
pub mCoordinates: root::nsTArray<root::nsStyleCoord>,
|
||||
pub mPosition: root::mozilla::Position,
|
||||
pub mRadius: root::nsStyleCorners,
|
||||
}
|
||||
pub type StyleBasicShape_HasThreadSafeRefCnt =
|
||||
root::mozilla::TrueType;
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleBasicShape() {
|
||||
assert_eq!(::std::mem::size_of::<StyleBasicShape>() , 120usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleBasicShape>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleShapeSource<ReferenceBox> {
|
||||
pub __bindgen_anon_1: root::mozilla::StyleShapeSource__bindgen_ty_1<ReferenceBox>,
|
||||
pub mType: root::mozilla::StyleShapeSourceType,
|
||||
pub mReferenceBox: ReferenceBox,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct StyleShapeSource__bindgen_ty_1<ReferenceBox> {
|
||||
pub mBasicShape: root::__BindgenUnionField<*mut root::mozilla::StyleBasicShape>,
|
||||
pub mURL: root::__BindgenUnionField<*mut root::mozilla::css::URLValue>,
|
||||
pub bindgen_union_field: u64,
|
||||
pub _phantom_0: ::std::marker::PhantomData<ReferenceBox>,
|
||||
}
|
||||
pub type StyleClipPath =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>;
|
||||
pub type StyleShapeOutside =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>;
|
||||
#[test]
|
||||
fn __bindgen_test_layout_template_2() {
|
||||
assert_eq!(::std::mem::size_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>>()
|
||||
|
@ -4384,6 +4386,7 @@ pub mod root {
|
|||
pub struct nsCycleCollectionParticipant {
|
||||
pub vtable_: *const nsCycleCollectionParticipant__bindgen_vtable,
|
||||
pub mMightSkip: bool,
|
||||
pub mTraverseShouldTrace: bool,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsCycleCollectionParticipant() {
|
||||
|
@ -4861,8 +4864,7 @@ pub mod root {
|
|||
* causes between the native object and the JS object, so it is important that
|
||||
* any native object that supports preserving of its wrapper
|
||||
* traces/traverses/unlinks the cached JS object (see
|
||||
* NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER,
|
||||
* NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS and
|
||||
* NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER and
|
||||
* NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER).
|
||||
*/
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
|
@ -5063,7 +5065,7 @@ pub mod root {
|
|||
pub mStates: root::EventStates_InternalType,
|
||||
}
|
||||
pub type EventStates_InternalType = u64;
|
||||
pub type EventStates_ServoType = u8;
|
||||
pub type EventStates_ServoType = u16;
|
||||
#[test]
|
||||
fn bindgen_test_layout_EventStates() {
|
||||
assert_eq!(::std::mem::size_of::<EventStates>() , 8usize);
|
||||
|
@ -6540,6 +6542,12 @@ pub mod root {
|
|||
pub mFramesConstructed: u64,
|
||||
pub mFramesReflowed: u64,
|
||||
pub mReflowStartTime: root::mozilla::TimeStamp,
|
||||
pub mFirstPaintTime: root::mozilla::TimeStamp,
|
||||
pub mFirstClickTime: root::mozilla::TimeStamp,
|
||||
pub mFirstKeyTime: root::mozilla::TimeStamp,
|
||||
pub mFirstMouseMoveTime: root::mozilla::TimeStamp,
|
||||
pub mFirstScrollTime: root::mozilla::TimeStamp,
|
||||
pub mInteractionTimeEnabled: bool,
|
||||
pub mLastStyleUpdateForAllAnimations: root::mozilla::TimeStamp,
|
||||
pub _bitfield_1: u64,
|
||||
pub mRestyleLoggingEnabled: bool,
|
||||
|
@ -6576,6 +6584,14 @@ pub mod root {
|
|||
eContext_Print = 2,
|
||||
eContext_PageLayout = 3,
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum nsPresContext_InteractionType {
|
||||
eClickInteraction = 0,
|
||||
eKeyInteraction = 1,
|
||||
eMouseMoveInteraction = 2,
|
||||
eScrollInteraction = 3,
|
||||
}
|
||||
/**
|
||||
* A class that can be used to temporarily disable reflow interruption.
|
||||
*/
|
||||
|
@ -6600,7 +6616,7 @@ pub mod root {
|
|||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsPresContext() {
|
||||
assert_eq!(::std::mem::size_of::<nsPresContext>() , 1248usize);
|
||||
assert_eq!(::std::mem::size_of::<nsPresContext>() , 1296usize);
|
||||
assert_eq!(::std::mem::align_of::<nsPresContext>() , 8usize);
|
||||
}
|
||||
impl nsPresContext {
|
||||
|
@ -7950,6 +7966,14 @@ pub mod root {
|
|||
*mut ::std::os::raw::c_void)
|
||||
-> ::std::os::raw::c_int>;
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsMediaList {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for nsMediaList {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct nsAttrValue {
|
||||
pub mBits: usize,
|
||||
|
@ -9220,10 +9244,6 @@ pub mod root {
|
|||
impl Clone for nsFrameManagerBase_UndisplayedMap {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
extern "C" {
|
||||
#[link_name = "_ZN18nsFrameManagerBase23sGlobalGenerationNumberE"]
|
||||
pub static mut nsFrameManagerBase_sGlobalGenerationNumber: u32;
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsFrameManagerBase() {
|
||||
assert_eq!(::std::mem::size_of::<nsFrameManagerBase>() , 88usize);
|
||||
|
@ -11661,14 +11681,14 @@ pub mod root {
|
|||
pub type RawGeckoNode = root::nsINode;
|
||||
pub type RawGeckoElement = root::mozilla::dom::Element;
|
||||
pub type RawGeckoDocument = root::nsIDocument;
|
||||
pub type RawGeckoPresContext = [u64; 156usize];
|
||||
pub type RawGeckoPresContext = [u64; 162usize];
|
||||
pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
|
||||
pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode;
|
||||
pub type RawGeckoElementBorrowed = *const root::RawGeckoElement;
|
||||
pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement;
|
||||
pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument;
|
||||
pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument;
|
||||
pub type RawGeckoPresContextBorrowed = *const [u64; 156usize];
|
||||
pub type RawGeckoPresContextBorrowed = *const [u64; 162usize];
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum nsCSSTokenSerializationType {
|
||||
|
@ -11700,20 +11720,6 @@ pub mod root {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct LookAndFeelInt {
|
||||
pub id: i32,
|
||||
pub value: i32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_LookAndFeelInt() {
|
||||
assert_eq!(::std::mem::size_of::<LookAndFeelInt>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<LookAndFeelInt>() , 4usize);
|
||||
}
|
||||
impl Clone for LookAndFeelInt {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct imgIContainer {
|
||||
pub _address: u8,
|
||||
}
|
||||
|
@ -12540,7 +12546,7 @@ pub mod root {
|
|||
pub mWhiteSpace: u8,
|
||||
pub mWordBreak: u8,
|
||||
pub mOverflowWrap: u8,
|
||||
pub mHyphens: u8,
|
||||
pub mHyphens: root::mozilla::StyleHyphens,
|
||||
pub mRubyAlign: u8,
|
||||
pub mRubyPosition: u8,
|
||||
pub mTextSizeAdjust: u8,
|
||||
|
|
|
@ -226,14 +226,6 @@ pub mod root {
|
|||
250;
|
||||
pub const NS_FONT_VARIANT_NORMAL: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_FONT_VARIANT_SMALL_CAPS: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_CORNER_TOP_LEFT_X: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_CORNER_TOP_LEFT_Y: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_CORNER_TOP_RIGHT_X: ::std::os::raw::c_uint = 2;
|
||||
pub const NS_CORNER_TOP_RIGHT_Y: ::std::os::raw::c_uint = 3;
|
||||
pub const NS_CORNER_BOTTOM_RIGHT_X: ::std::os::raw::c_uint = 4;
|
||||
pub const NS_CORNER_BOTTOM_RIGHT_Y: ::std::os::raw::c_uint = 5;
|
||||
pub const NS_CORNER_BOTTOM_LEFT_X: ::std::os::raw::c_uint = 6;
|
||||
pub const NS_CORNER_BOTTOM_LEFT_Y: ::std::os::raw::c_uint = 7;
|
||||
pub const NS_STYLE_STACK_SIZING_IGNORE: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_STACK_SIZING_STRETCH_TO_FIT: ::std::os::raw::c_uint =
|
||||
1;
|
||||
|
@ -761,9 +753,6 @@ pub mod root {
|
|||
pub const NS_STYLE_WORDBREAK_KEEP_ALL: ::std::os::raw::c_uint = 2;
|
||||
pub const NS_STYLE_OVERFLOWWRAP_NORMAL: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_OVERFLOWWRAP_BREAK_WORD: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_STYLE_HYPHENS_NONE: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_HYPHENS_MANUAL: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_STYLE_HYPHENS_AUTO: ::std::os::raw::c_uint = 2;
|
||||
pub const NS_STYLE_RUBY_ALIGN_START: ::std::os::raw::c_uint = 0;
|
||||
pub const NS_STYLE_RUBY_ALIGN_CENTER: ::std::os::raw::c_uint = 1;
|
||||
pub const NS_STYLE_RUBY_ALIGN_SPACE_BETWEEN: ::std::os::raw::c_uint = 2;
|
||||
|
@ -1367,9 +1356,6 @@ pub mod root {
|
|||
impl Clone for AudioContext {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
pub const ReferrerPolicy_RP_Default:
|
||||
root::mozilla::dom::ReferrerPolicy =
|
||||
ReferrerPolicy::RP_No_Referrer_When_Downgrade;
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum ReferrerPolicy {
|
||||
|
@ -2315,6 +2301,7 @@ pub mod root {
|
|||
pub mTitle: ::nsstring::nsStringRepr,
|
||||
pub mDocument: *mut root::nsIDocument,
|
||||
pub mOwningNode: *mut root::nsINode,
|
||||
pub mMedia: root::RefPtr<root::nsMediaList>,
|
||||
pub mParsingMode: root::mozilla::css::SheetParsingMode,
|
||||
pub mType: root::StyleBackendType,
|
||||
pub mDisabled: bool,
|
||||
|
@ -2342,7 +2329,7 @@ pub mod root {
|
|||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleSheet() {
|
||||
assert_eq!(::std::mem::size_of::<StyleSheet>() , 80usize);
|
||||
assert_eq!(::std::mem::size_of::<StyleSheet>() , 88usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleSheet>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
|
@ -2361,6 +2348,18 @@ pub mod root {
|
|||
eSideBottom = 2,
|
||||
eSideLeft = 3,
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum HalfCorner {
|
||||
eCornerTopLeftX = 0,
|
||||
eCornerTopLeftY = 1,
|
||||
eCornerTopRightX = 2,
|
||||
eCornerTopRightY = 3,
|
||||
eCornerBottomRightX = 4,
|
||||
eCornerBottomRightY = 5,
|
||||
eCornerBottomLeftX = 6,
|
||||
eCornerBottomLeftY = 7,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct SVGAttrAnimationRuleProcessor {
|
||||
|
@ -2740,6 +2739,9 @@ pub mod root {
|
|||
pub enum StyleFloatEdge { ContentBox = 0, MarginBox = 1, }
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum StyleHyphens { None = 0, Manual = 1, Auto = 2, }
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum StyleShapeOutsideShapeBox {
|
||||
NoBox = 0,
|
||||
Content = 1,
|
||||
|
@ -3037,194 +3039,6 @@ pub mod root {
|
|||
assert_eq!(::std::mem::align_of::<root::mozilla::DefaultDelete<root::RawServoStyleSet>>()
|
||||
, 1usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues {
|
||||
/**
|
||||
* Map of variable names to IDs. Variable IDs are indexes into
|
||||
* mVariables.
|
||||
*/
|
||||
pub mVariableIDs: [u64; 5usize],
|
||||
/**
|
||||
* Array of variables, indexed by variable ID.
|
||||
*/
|
||||
pub mVariables: root::nsTArray<root::mozilla::CSSVariableValues_Variable>,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues_Variable {
|
||||
pub mVariableName: ::nsstring::nsStringRepr,
|
||||
pub mValue: ::nsstring::nsStringRepr,
|
||||
pub mFirstToken: root::nsCSSTokenSerializationType,
|
||||
pub mLastToken: root::nsCSSTokenSerializationType,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues_Variable() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues_Variable>() ,
|
||||
40usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues_Variable>() ,
|
||||
8usize);
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues>() , 48usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct CounterStyle__bindgen_vtable {
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct CounterStyle {
|
||||
pub vtable_: *const CounterStyle__bindgen_vtable,
|
||||
pub mStyle: i32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CounterStyle() {
|
||||
assert_eq!(::std::mem::size_of::<CounterStyle>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<CounterStyle>() , 8usize);
|
||||
}
|
||||
impl Clone for CounterStyle {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
pub mod image {
|
||||
#[allow(unused_imports)]
|
||||
use self::super::super::super::root;
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ImageURL {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ImageURL {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Image {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for Image {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ProgressTracker {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ProgressTracker {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct IProgressObserver__bindgen_vtable {
|
||||
}
|
||||
/**
|
||||
* An interface for observing changes to image state, as reported by
|
||||
* ProgressTracker.
|
||||
*
|
||||
* This is the ImageLib-internal version of imgINotificationObserver,
|
||||
* essentially, with implementation details that code outside of ImageLib
|
||||
* shouldn't see.
|
||||
*
|
||||
* XXX(seth): It's preferable to avoid adding anything to this interface if
|
||||
* possible. In the long term, it would be ideal to get to a place where we can
|
||||
* just use the imgINotificationObserver interface internally as well.
|
||||
*/
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct IProgressObserver {
|
||||
pub vtable_: *const IProgressObserver__bindgen_vtable,
|
||||
pub _base: u64,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_IProgressObserver() {
|
||||
assert_eq!(::std::mem::size_of::<IProgressObserver>() ,
|
||||
16usize);
|
||||
assert_eq!(::std::mem::align_of::<IProgressObserver>() ,
|
||||
8usize);
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Position {
|
||||
pub mXPosition: root::mozilla::Position_Coord,
|
||||
pub mYPosition: root::mozilla::Position_Coord,
|
||||
}
|
||||
pub type Position_Coord = root::nsStyleCoord_CalcValue;
|
||||
#[test]
|
||||
fn bindgen_test_layout_Position() {
|
||||
assert_eq!(::std::mem::size_of::<Position>() , 24usize);
|
||||
assert_eq!(::std::mem::align_of::<Position>() , 4usize);
|
||||
}
|
||||
impl Clone for Position {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleTransition {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mProperty: root::nsCSSPropertyID,
|
||||
pub mUnknownProperty: root::nsCOMPtr<root::nsIAtom>,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleTransition() {
|
||||
assert_eq!(::std::mem::size_of::<StyleTransition>() , 40usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleTransition>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleAnimation {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mName: ::nsstring::nsStringRepr,
|
||||
pub mDirection: root::mozilla::dom::PlaybackDirection,
|
||||
pub mFillMode: root::mozilla::dom::FillMode,
|
||||
pub mPlayState: u8,
|
||||
pub mIterationCount: f32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleAnimation() {
|
||||
assert_eq!(::std::mem::size_of::<StyleAnimation>() , 64usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleAnimation>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleBasicShape {
|
||||
pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
|
||||
pub mType: root::mozilla::StyleBasicShapeType,
|
||||
pub mFillRule: root::mozilla::StyleFillRule,
|
||||
pub mCoordinates: root::nsTArray<root::nsStyleCoord>,
|
||||
pub mPosition: root::mozilla::Position,
|
||||
pub mRadius: root::nsStyleCorners,
|
||||
}
|
||||
pub type StyleBasicShape_HasThreadSafeRefCnt =
|
||||
root::mozilla::TrueType;
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleBasicShape() {
|
||||
assert_eq!(::std::mem::size_of::<StyleBasicShape>() , 120usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleBasicShape>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleShapeSource<ReferenceBox> {
|
||||
pub __bindgen_anon_1: root::mozilla::StyleShapeSource__bindgen_ty_1<ReferenceBox>,
|
||||
pub mType: root::mozilla::StyleShapeSourceType,
|
||||
pub mReferenceBox: ReferenceBox,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct StyleShapeSource__bindgen_ty_1<ReferenceBox> {
|
||||
pub mBasicShape: root::__BindgenUnionField<*mut root::mozilla::StyleBasicShape>,
|
||||
pub mURL: root::__BindgenUnionField<*mut root::mozilla::css::URLValue>,
|
||||
pub bindgen_union_field: u64,
|
||||
pub _phantom_0: ::std::marker::PhantomData<ReferenceBox>,
|
||||
}
|
||||
pub type StyleClipPath =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>;
|
||||
pub type StyleShapeOutside =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>;
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum CSSPseudoClassType {
|
||||
|
@ -3312,6 +3126,194 @@ pub mod root {
|
|||
NotPseudo = 81,
|
||||
MAX = 82,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues {
|
||||
/**
|
||||
* Map of variable names to IDs. Variable IDs are indexes into
|
||||
* mVariables.
|
||||
*/
|
||||
pub mVariableIDs: [u64; 5usize],
|
||||
/**
|
||||
* Array of variables, indexed by variable ID.
|
||||
*/
|
||||
pub mVariables: root::nsTArray<root::mozilla::CSSVariableValues_Variable>,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct CSSVariableValues_Variable {
|
||||
pub mVariableName: ::nsstring::nsStringRepr,
|
||||
pub mValue: ::nsstring::nsStringRepr,
|
||||
pub mFirstToken: root::nsCSSTokenSerializationType,
|
||||
pub mLastToken: root::nsCSSTokenSerializationType,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues_Variable() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues_Variable>() ,
|
||||
40usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues_Variable>() ,
|
||||
8usize);
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CSSVariableValues() {
|
||||
assert_eq!(::std::mem::size_of::<CSSVariableValues>() , 48usize);
|
||||
assert_eq!(::std::mem::align_of::<CSSVariableValues>() , 8usize);
|
||||
}
|
||||
pub mod image {
|
||||
#[allow(unused_imports)]
|
||||
use self::super::super::super::root;
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ImageURL {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ImageURL {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Image {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for Image {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct ProgressTracker {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for ProgressTracker {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct IProgressObserver__bindgen_vtable {
|
||||
}
|
||||
/**
|
||||
* An interface for observing changes to image state, as reported by
|
||||
* ProgressTracker.
|
||||
*
|
||||
* This is the ImageLib-internal version of imgINotificationObserver,
|
||||
* essentially, with implementation details that code outside of ImageLib
|
||||
* shouldn't see.
|
||||
*
|
||||
* XXX(seth): It's preferable to avoid adding anything to this interface if
|
||||
* possible. In the long term, it would be ideal to get to a place where we can
|
||||
* just use the imgINotificationObserver interface internally as well.
|
||||
*/
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct IProgressObserver {
|
||||
pub vtable_: *const IProgressObserver__bindgen_vtable,
|
||||
pub _base: u64,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_IProgressObserver() {
|
||||
assert_eq!(::std::mem::size_of::<IProgressObserver>() ,
|
||||
16usize);
|
||||
assert_eq!(::std::mem::align_of::<IProgressObserver>() ,
|
||||
8usize);
|
||||
}
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct CounterStyle__bindgen_vtable {
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct CounterStyle {
|
||||
pub vtable_: *const CounterStyle__bindgen_vtable,
|
||||
pub mStyle: i32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_CounterStyle() {
|
||||
assert_eq!(::std::mem::size_of::<CounterStyle>() , 16usize);
|
||||
assert_eq!(::std::mem::align_of::<CounterStyle>() , 8usize);
|
||||
}
|
||||
impl Clone for CounterStyle {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct Position {
|
||||
pub mXPosition: root::mozilla::Position_Coord,
|
||||
pub mYPosition: root::mozilla::Position_Coord,
|
||||
}
|
||||
pub type Position_Coord = root::nsStyleCoord_CalcValue;
|
||||
#[test]
|
||||
fn bindgen_test_layout_Position() {
|
||||
assert_eq!(::std::mem::size_of::<Position>() , 24usize);
|
||||
assert_eq!(::std::mem::align_of::<Position>() , 4usize);
|
||||
}
|
||||
impl Clone for Position {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleTransition {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mProperty: root::nsCSSPropertyID,
|
||||
pub mUnknownProperty: root::nsCOMPtr<root::nsIAtom>,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleTransition() {
|
||||
assert_eq!(::std::mem::size_of::<StyleTransition>() , 40usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleTransition>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleAnimation {
|
||||
pub mTimingFunction: root::nsTimingFunction,
|
||||
pub mDuration: f32,
|
||||
pub mDelay: f32,
|
||||
pub mName: ::nsstring::nsStringRepr,
|
||||
pub mDirection: root::mozilla::dom::PlaybackDirection,
|
||||
pub mFillMode: root::mozilla::dom::FillMode,
|
||||
pub mPlayState: u8,
|
||||
pub mIterationCount: f32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleAnimation() {
|
||||
assert_eq!(::std::mem::size_of::<StyleAnimation>() , 64usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleAnimation>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleBasicShape {
|
||||
pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
|
||||
pub mType: root::mozilla::StyleBasicShapeType,
|
||||
pub mFillRule: root::mozilla::StyleFillRule,
|
||||
pub mCoordinates: root::nsTArray<root::nsStyleCoord>,
|
||||
pub mPosition: root::mozilla::Position,
|
||||
pub mRadius: root::nsStyleCorners,
|
||||
}
|
||||
pub type StyleBasicShape_HasThreadSafeRefCnt =
|
||||
root::mozilla::TrueType;
|
||||
#[test]
|
||||
fn bindgen_test_layout_StyleBasicShape() {
|
||||
assert_eq!(::std::mem::size_of::<StyleBasicShape>() , 120usize);
|
||||
assert_eq!(::std::mem::align_of::<StyleBasicShape>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct StyleShapeSource<ReferenceBox> {
|
||||
pub __bindgen_anon_1: root::mozilla::StyleShapeSource__bindgen_ty_1<ReferenceBox>,
|
||||
pub mType: root::mozilla::StyleShapeSourceType,
|
||||
pub mReferenceBox: ReferenceBox,
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct StyleShapeSource__bindgen_ty_1<ReferenceBox> {
|
||||
pub mBasicShape: root::__BindgenUnionField<*mut root::mozilla::StyleBasicShape>,
|
||||
pub mURL: root::__BindgenUnionField<*mut root::mozilla::css::URLValue>,
|
||||
pub bindgen_union_field: u64,
|
||||
pub _phantom_0: ::std::marker::PhantomData<ReferenceBox>,
|
||||
}
|
||||
pub type StyleClipPath =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>;
|
||||
pub type StyleShapeOutside =
|
||||
root::mozilla::StyleShapeSource<root::mozilla::StyleShapeOutsideShapeBox>;
|
||||
#[test]
|
||||
fn __bindgen_test_layout_template_2() {
|
||||
assert_eq!(::std::mem::size_of::<root::mozilla::StyleShapeSource<root::mozilla::StyleGeometryBox>>()
|
||||
|
@ -4366,6 +4368,7 @@ pub mod root {
|
|||
pub struct nsCycleCollectionParticipant {
|
||||
pub vtable_: *const nsCycleCollectionParticipant__bindgen_vtable,
|
||||
pub mMightSkip: bool,
|
||||
pub mTraverseShouldTrace: bool,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsCycleCollectionParticipant() {
|
||||
|
@ -4831,8 +4834,7 @@ pub mod root {
|
|||
* causes between the native object and the JS object, so it is important that
|
||||
* any native object that supports preserving of its wrapper
|
||||
* traces/traverses/unlinks the cached JS object (see
|
||||
* NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER,
|
||||
* NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS and
|
||||
* NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER and
|
||||
* NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER).
|
||||
*/
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
|
@ -5033,7 +5035,7 @@ pub mod root {
|
|||
pub mStates: root::EventStates_InternalType,
|
||||
}
|
||||
pub type EventStates_InternalType = u64;
|
||||
pub type EventStates_ServoType = u8;
|
||||
pub type EventStates_ServoType = u16;
|
||||
#[test]
|
||||
fn bindgen_test_layout_EventStates() {
|
||||
assert_eq!(::std::mem::size_of::<EventStates>() , 8usize);
|
||||
|
@ -6504,6 +6506,12 @@ pub mod root {
|
|||
pub mFramesConstructed: u64,
|
||||
pub mFramesReflowed: u64,
|
||||
pub mReflowStartTime: root::mozilla::TimeStamp,
|
||||
pub mFirstPaintTime: root::mozilla::TimeStamp,
|
||||
pub mFirstClickTime: root::mozilla::TimeStamp,
|
||||
pub mFirstKeyTime: root::mozilla::TimeStamp,
|
||||
pub mFirstMouseMoveTime: root::mozilla::TimeStamp,
|
||||
pub mFirstScrollTime: root::mozilla::TimeStamp,
|
||||
pub mInteractionTimeEnabled: bool,
|
||||
pub mLastStyleUpdateForAllAnimations: root::mozilla::TimeStamp,
|
||||
pub _bitfield_1: u64,
|
||||
}
|
||||
|
@ -6537,6 +6545,14 @@ pub mod root {
|
|||
eContext_Print = 2,
|
||||
eContext_PageLayout = 3,
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum nsPresContext_InteractionType {
|
||||
eClickInteraction = 0,
|
||||
eKeyInteraction = 1,
|
||||
eMouseMoveInteraction = 2,
|
||||
eScrollInteraction = 3,
|
||||
}
|
||||
/**
|
||||
* A class that can be used to temporarily disable reflow interruption.
|
||||
*/
|
||||
|
@ -6561,7 +6577,7 @@ pub mod root {
|
|||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsPresContext() {
|
||||
assert_eq!(::std::mem::size_of::<nsPresContext>() , 1216usize);
|
||||
assert_eq!(::std::mem::size_of::<nsPresContext>() , 1264usize);
|
||||
assert_eq!(::std::mem::align_of::<nsPresContext>() , 8usize);
|
||||
}
|
||||
impl nsPresContext {
|
||||
|
@ -7892,6 +7908,14 @@ pub mod root {
|
|||
*mut ::std::os::raw::c_void)
|
||||
-> ::std::os::raw::c_int>;
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsMediaList {
|
||||
pub _address: u8,
|
||||
}
|
||||
impl Clone for nsMediaList {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct nsAttrValue {
|
||||
pub mBits: usize,
|
||||
|
@ -9157,10 +9181,6 @@ pub mod root {
|
|||
impl Clone for nsFrameManagerBase_UndisplayedMap {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
extern "C" {
|
||||
#[link_name = "_ZN18nsFrameManagerBase23sGlobalGenerationNumberE"]
|
||||
pub static mut nsFrameManagerBase_sGlobalGenerationNumber: u32;
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsFrameManagerBase() {
|
||||
assert_eq!(::std::mem::size_of::<nsFrameManagerBase>() , 80usize);
|
||||
|
@ -11588,14 +11608,14 @@ pub mod root {
|
|||
pub type RawGeckoNode = root::nsINode;
|
||||
pub type RawGeckoElement = root::mozilla::dom::Element;
|
||||
pub type RawGeckoDocument = root::nsIDocument;
|
||||
pub type RawGeckoPresContext = [u64; 152usize];
|
||||
pub type RawGeckoPresContext = [u64; 158usize];
|
||||
pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
|
||||
pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode;
|
||||
pub type RawGeckoElementBorrowed = *const root::RawGeckoElement;
|
||||
pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement;
|
||||
pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument;
|
||||
pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument;
|
||||
pub type RawGeckoPresContextBorrowed = *const [u64; 152usize];
|
||||
pub type RawGeckoPresContextBorrowed = *const [u64; 158usize];
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum nsCSSTokenSerializationType {
|
||||
|
@ -11627,20 +11647,6 @@ pub mod root {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct LookAndFeelInt {
|
||||
pub id: i32,
|
||||
pub value: i32,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_LookAndFeelInt() {
|
||||
assert_eq!(::std::mem::size_of::<LookAndFeelInt>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<LookAndFeelInt>() , 4usize);
|
||||
}
|
||||
impl Clone for LookAndFeelInt {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct imgIContainer {
|
||||
pub _address: u8,
|
||||
}
|
||||
|
@ -12467,7 +12473,7 @@ pub mod root {
|
|||
pub mWhiteSpace: u8,
|
||||
pub mWordBreak: u8,
|
||||
pub mOverflowWrap: u8,
|
||||
pub mHyphens: u8,
|
||||
pub mHyphens: root::mozilla::StyleHyphens,
|
||||
pub mRubyAlign: u8,
|
||||
pub mRubyPosition: u8,
|
||||
pub mTextSizeAdjust: u8,
|
||||
|
|
|
@ -596,10 +596,10 @@ class Side(object):
|
|||
self.index = index
|
||||
|
||||
class Corner(object):
|
||||
def __init__(self, name, index):
|
||||
self.x_name = "NS_CORNER_" + name + "_X"
|
||||
self.y_name = "NS_CORNER_" + name + "_Y"
|
||||
self.ident = name.lower()
|
||||
def __init__(self, vert, horiz, index):
|
||||
self.x_name = "HalfCorner::eCorner" + vert + horiz + "X"
|
||||
self.y_name = "HalfCorner::eCorner" + vert + horiz + "Y"
|
||||
self.ident = (vert + "_" + horiz).lower()
|
||||
self.x_index = 2 * index
|
||||
self.y_index = 2 * index + 1
|
||||
|
||||
|
@ -610,7 +610,8 @@ class GridLine(object):
|
|||
self.gecko = "m" + to_camel_case(self.ident)
|
||||
|
||||
SIDES = [Side("Top", 0), Side("Right", 1), Side("Bottom", 2), Side("Left", 3)]
|
||||
CORNERS = [Corner("TOP_LEFT", 0), Corner("TOP_RIGHT", 1), Corner("BOTTOM_RIGHT", 2), Corner("BOTTOM_LEFT", 3)]
|
||||
CORNERS = [Corner("Top", "Left", 0), Corner("Top", "Right", 1),
|
||||
Corner("Bottom", "Right", 2), Corner("Bottom", "Left", 3)]
|
||||
GRID_LINES = map(GridLine, ["row-start", "row-end", "column-start", "column-end"])
|
||||
%>
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@ ${helpers.single_keyword("text-transform",
|
|||
spec="https://drafts.csswg.org/css-text/#propdef-text-transform")}
|
||||
|
||||
${helpers.single_keyword("hyphens", "none manual auto",
|
||||
gecko_enum_prefix="StyleHyphens",
|
||||
products="gecko", animatable=False,
|
||||
spec="https://drafts.csswg.org/css-text/#propdef-hyphens")}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче