@@ -17,6 +17,7 @@ use gecko_bindings::structs::mozilla::css::URLValueData;
17
17
use gecko_bindings:: structs:: mozilla:: dom:: CallerType ;
18
18
use gecko_bindings:: structs:: mozilla:: AnonymousCounterStyle ;
19
19
use gecko_bindings:: structs:: mozilla:: AtomArray ;
20
+ use gecko_bindings:: structs:: mozilla:: FontWeight ;
20
21
use gecko_bindings:: structs:: mozilla:: MallocSizeOf ;
21
22
use gecko_bindings:: structs:: mozilla:: OriginFlags ;
22
23
use gecko_bindings:: structs:: mozilla:: UniquePtr ;
@@ -218,9 +219,6 @@ unsafe impl Sync for nsStyleUnit {}
218
219
use gecko_bindings:: structs:: nsStyleUserInterface;
219
220
unsafe impl Send for nsStyleUserInterface { }
220
221
unsafe impl Sync for nsStyleUserInterface { }
221
- use gecko_bindings:: structs:: nsStyleVariables;
222
- unsafe impl Send for nsStyleVariables { }
223
- unsafe impl Sync for nsStyleVariables { }
224
222
use gecko_bindings:: structs:: nsStyleVisibility;
225
223
unsafe impl Send for nsStyleVisibility { }
226
224
unsafe impl Sync for nsStyleVisibility { }
@@ -1192,7 +1190,7 @@ extern "C" {
1192
1190
pub fn Gecko_CalcStyleDifference (
1193
1191
old_style : ComputedStyleBorrowed ,
1194
1192
new_style : ComputedStyleBorrowed ,
1195
- any_style_changed : * mut bool ,
1193
+ any_style_struct_changed : * mut bool ,
1196
1194
reset_only_changed : * mut bool ,
1197
1195
) -> u32 ;
1198
1196
}
@@ -1452,6 +1450,9 @@ extern "C" {
1452
1450
extern "C" {
1453
1451
pub fn Gecko_CSSValue_SetCalc ( css_value : nsCSSValueBorrowedMut , calc : nsStyleCoord_CalcValue ) ;
1454
1452
}
1453
+ extern "C" {
1454
+ pub fn Gecko_CSSValue_SetFontWeight ( css_value : nsCSSValueBorrowedMut , weight : f32 ) ;
1455
+ }
1455
1456
extern "C" {
1456
1457
pub fn Gecko_CSSValue_SetFunction ( css_value : nsCSSValueBorrowedMut , len : i32 ) ;
1457
1458
}
@@ -1510,6 +1511,12 @@ extern "C" {
1510
1511
extern "C" {
1511
1512
pub fn Gecko_ReleaseCSSValueSharedListArbitraryThread ( aPtr : * mut nsCSSValueSharedList ) ;
1512
1513
}
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
+ }
1513
1520
extern "C" {
1514
1521
pub fn Gecko_nsStyleFont_SetLang ( font : * mut nsStyleFont , atom : * mut nsAtom ) ;
1515
1522
}
@@ -1701,21 +1708,6 @@ extern "C" {
1701
1708
extern "C" {
1702
1709
pub fn Gecko_Destroy_nsStyleSVG ( ptr : * mut nsStyleSVG ) ;
1703
1710
}
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
- }
1719
1711
extern "C" {
1720
1712
pub fn Gecko_Construct_Default_nsStyleBackground (
1721
1713
ptr : * mut nsStyleBackground ,
@@ -1985,6 +1977,9 @@ extern "C" {
1985
1977
extern "C" {
1986
1978
pub fn Servo_Element_IsDisplayNone ( element : RawGeckoElementBorrowed ) -> bool ;
1987
1979
}
1980
+ extern "C" {
1981
+ pub fn Servo_Element_IsDisplayContents ( element : RawGeckoElementBorrowed ) -> bool ;
1982
+ }
1988
1983
extern "C" {
1989
1984
pub fn Servo_Element_IsPrimaryStyleReusedViaRuleNode ( element : RawGeckoElementBorrowed ) -> bool ;
1990
1985
}
@@ -3389,6 +3384,9 @@ extern "C" {
3389
3384
extern "C" {
3390
3385
pub fn Servo_Property_IsShorthand ( name : * const nsACString , found : * mut bool ) -> bool ;
3391
3386
}
3387
+ extern "C" {
3388
+ pub fn Servo_Property_IsInherited ( name : * const nsACString ) -> bool ;
3389
+ }
3392
3390
extern "C" {
3393
3391
pub fn Servo_PseudoClass_GetStates ( name : * const nsACString ) -> u64 ;
3394
3392
}
0 commit comments