@@ -17,6 +17,7 @@ use gecko_bindings::structs::mozilla::css::URLValueData;
1717use gecko_bindings:: structs:: mozilla:: dom:: CallerType ;
1818use gecko_bindings:: structs:: mozilla:: AnonymousCounterStyle ;
1919use gecko_bindings:: structs:: mozilla:: AtomArray ;
20+ use gecko_bindings:: structs:: mozilla:: FontWeight ;
2021use gecko_bindings:: structs:: mozilla:: MallocSizeOf ;
2122use gecko_bindings:: structs:: mozilla:: OriginFlags ;
2223use gecko_bindings:: structs:: mozilla:: UniquePtr ;
@@ -218,9 +219,6 @@ unsafe impl Sync for nsStyleUnit {}
218219use gecko_bindings:: structs:: nsStyleUserInterface;
219220unsafe impl Send for nsStyleUserInterface { }
220221unsafe impl Sync for nsStyleUserInterface { }
221- use gecko_bindings:: structs:: nsStyleVariables;
222- unsafe impl Send for nsStyleVariables { }
223- unsafe impl Sync for nsStyleVariables { }
224222use gecko_bindings:: structs:: nsStyleVisibility;
225223unsafe impl Send for nsStyleVisibility { }
226224unsafe impl Sync for nsStyleVisibility { }
@@ -1192,7 +1190,7 @@ extern "C" {
11921190 pub fn Gecko_CalcStyleDifference (
11931191 old_style : ComputedStyleBorrowed ,
11941192 new_style : ComputedStyleBorrowed ,
1195- any_style_changed : * mut bool ,
1193+ any_style_struct_changed : * mut bool ,
11961194 reset_only_changed : * mut bool ,
11971195 ) -> u32 ;
11981196}
@@ -1452,6 +1450,9 @@ extern "C" {
14521450extern "C" {
14531451 pub fn Gecko_CSSValue_SetCalc ( css_value : nsCSSValueBorrowedMut , calc : nsStyleCoord_CalcValue ) ;
14541452}
1453+ extern "C" {
1454+ pub fn Gecko_CSSValue_SetFontWeight ( css_value : nsCSSValueBorrowedMut , weight : f32 ) ;
1455+ }
14551456extern "C" {
14561457 pub fn Gecko_CSSValue_SetFunction ( css_value : nsCSSValueBorrowedMut , len : i32 ) ;
14571458}
@@ -1510,6 +1511,12 @@ extern "C" {
15101511extern "C" {
15111512 pub fn Gecko_ReleaseCSSValueSharedListArbitraryThread ( aPtr : * mut nsCSSValueSharedList ) ;
15121513}
1514+ extern "C" {
1515+ pub fn Gecko_FontWeight_ToFloat ( aWeight : FontWeight ) -> f32 ;
1516+ }
1517+ extern "C" {
1518+ pub fn Gecko_FontWeight_SetFloat ( aWeight : * mut FontWeight , aFloatValue : f32 ) ;
1519+ }
15131520extern "C" {
15141521 pub fn Gecko_nsStyleFont_SetLang ( font : * mut nsStyleFont , atom : * mut nsAtom ) ;
15151522}
@@ -1701,21 +1708,6 @@ extern "C" {
17011708extern "C" {
17021709 pub fn Gecko_Destroy_nsStyleSVG ( ptr : * mut nsStyleSVG ) ;
17031710}
1704- extern "C" {
1705- pub fn Gecko_Construct_Default_nsStyleVariables (
1706- ptr : * mut nsStyleVariables ,
1707- pres_context : RawGeckoPresContextBorrowed ,
1708- ) ;
1709- }
1710- extern "C" {
1711- pub fn Gecko_CopyConstruct_nsStyleVariables (
1712- ptr : * mut nsStyleVariables ,
1713- other : * const nsStyleVariables ,
1714- ) ;
1715- }
1716- extern "C" {
1717- pub fn Gecko_Destroy_nsStyleVariables ( ptr : * mut nsStyleVariables ) ;
1718- }
17191711extern "C" {
17201712 pub fn Gecko_Construct_Default_nsStyleBackground (
17211713 ptr : * mut nsStyleBackground ,
@@ -1985,6 +1977,9 @@ extern "C" {
19851977extern "C" {
19861978 pub fn Servo_Element_IsDisplayNone ( element : RawGeckoElementBorrowed ) -> bool ;
19871979}
1980+ extern "C" {
1981+ pub fn Servo_Element_IsDisplayContents ( element : RawGeckoElementBorrowed ) -> bool ;
1982+ }
19881983extern "C" {
19891984 pub fn Servo_Element_IsPrimaryStyleReusedViaRuleNode ( element : RawGeckoElementBorrowed ) -> bool ;
19901985}
@@ -3389,6 +3384,9 @@ extern "C" {
33893384extern "C" {
33903385 pub fn Servo_Property_IsShorthand ( name : * const nsACString , found : * mut bool ) -> bool ;
33913386}
3387+ extern "C" {
3388+ pub fn Servo_Property_IsInherited ( name : * const nsACString ) -> bool ;
3389+ }
33923390extern "C" {
33933391 pub fn Servo_PseudoClass_GetStates ( name : * const nsACString ) -> u64 ;
33943392}
0 commit comments