From d52f04d105d46ec8d9ca99e15694a67a43bd6a05 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 17 Jul 2017 11:41:37 -0700 Subject: [PATCH] stylo: Use RawOffsetArc in ComputedValues --- .../style/gecko/generated/structs_debug.rs | 53 ++++++++++--------- .../style/gecko/generated/structs_release.rs | 53 ++++++++++--------- 2 files changed, 54 insertions(+), 52 deletions(-) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 04e2dab249c..ef3f7dbe87e 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -13,6 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -7615,30 +7616,30 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct ServoComputedValues2 { - pub Font: *mut root::nsStyleFont, - pub Color: *mut root::nsStyleColor, - pub List: *mut root::nsStyleList, - pub Text: *mut root::nsStyleText, - pub Visibility: *mut root::nsStyleVisibility, - pub UserInterface: *mut root::nsStyleUserInterface, - pub TableBorder: *mut root::nsStyleTableBorder, - pub SVG: *mut root::nsStyleSVG, - pub Variables: *mut root::nsStyleVariables, - pub Background: *mut root::nsStyleBackground, - pub Position: *mut root::nsStylePosition, - pub TextReset: *mut root::nsStyleTextReset, - pub Display: *mut root::nsStyleDisplay, - pub Content: *mut root::nsStyleContent, - pub UIReset: *mut root::nsStyleUIReset, - pub Table: *mut root::nsStyleTable, - pub Margin: *mut root::nsStyleMargin, - pub Padding: *mut root::nsStylePadding, - pub Border: *mut root::nsStyleBorder, - pub Outline: *mut root::nsStyleOutline, - pub XUL: *mut root::nsStyleXUL, - pub SVGReset: *mut root::nsStyleSVGReset, - pub Column: *mut root::nsStyleColumn, - pub Effects: *mut root::nsStyleEffects, + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Variables: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, @@ -39048,7 +39049,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189479_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_189482_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -39057,7 +39058,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_189515_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_189518_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index f2249e141ec..4fde7c30529 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -13,6 +13,7 @@ pub type ServoWritingMode = ::logical_geometry::WritingMode; pub type ServoFontComputationData = ::properties::FontComputationData; pub type ServoCustomPropertiesMap = Option<::stylearc::Arc<::custom_properties::CustomPropertiesMap>>; pub type ServoVisitedStyle = Option<::stylearc::Arc>; +pub type ServoRawOffsetArc = ::stylearc::RawOffsetArc; #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] pub mod root { @@ -7467,30 +7468,30 @@ pub mod root { #[repr(C)] #[derive(Debug)] pub struct ServoComputedValues2 { - pub Font: *mut root::nsStyleFont, - pub Color: *mut root::nsStyleColor, - pub List: *mut root::nsStyleList, - pub Text: *mut root::nsStyleText, - pub Visibility: *mut root::nsStyleVisibility, - pub UserInterface: *mut root::nsStyleUserInterface, - pub TableBorder: *mut root::nsStyleTableBorder, - pub SVG: *mut root::nsStyleSVG, - pub Variables: *mut root::nsStyleVariables, - pub Background: *mut root::nsStyleBackground, - pub Position: *mut root::nsStylePosition, - pub TextReset: *mut root::nsStyleTextReset, - pub Display: *mut root::nsStyleDisplay, - pub Content: *mut root::nsStyleContent, - pub UIReset: *mut root::nsStyleUIReset, - pub Table: *mut root::nsStyleTable, - pub Margin: *mut root::nsStyleMargin, - pub Padding: *mut root::nsStylePadding, - pub Border: *mut root::nsStyleBorder, - pub Outline: *mut root::nsStyleOutline, - pub XUL: *mut root::nsStyleXUL, - pub SVGReset: *mut root::nsStyleSVGReset, - pub Column: *mut root::nsStyleColumn, - pub Effects: *mut root::nsStyleEffects, + pub Font: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Color: ::gecko_bindings::structs::ServoRawOffsetArc, + pub List: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Text: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Visibility: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UserInterface: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TableBorder: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVG: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Variables: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Background: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Position: ::gecko_bindings::structs::ServoRawOffsetArc, + pub TextReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Display: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Content: ::gecko_bindings::structs::ServoRawOffsetArc, + pub UIReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Table: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Margin: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Padding: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Border: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Outline: ::gecko_bindings::structs::ServoRawOffsetArc, + pub XUL: ::gecko_bindings::structs::ServoRawOffsetArc, + pub SVGReset: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Column: ::gecko_bindings::structs::ServoRawOffsetArc, + pub Effects: ::gecko_bindings::structs::ServoRawOffsetArc, pub custom_properties: ::gecko_bindings::structs::ServoCustomPropertiesMap, pub writing_mode: ::gecko_bindings::structs::ServoWritingMode, pub font_computation_data: ::gecko_bindings::structs::ServoFontComputationData, @@ -38412,7 +38413,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187138_instantiation_33() { + fn __bindgen_test_layout__bindgen_ty_id_187141_instantiation_33() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -38421,7 +38422,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_187174_instantiation_34() { + fn __bindgen_test_layout__bindgen_ty_id_187177_instantiation_34() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) ));