Skip to content

Commit b61b797

Browse files
emilioMoggers
authored andcommitted
style: Update binidngs.
1 parent 73f8dff commit b61b797

File tree

3 files changed

+403
-388
lines changed

3 files changed

+403
-388
lines changed

components/style/gecko/generated/atom_macro.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,6 @@ cfg_if! {
896896
pub static nsGkAtoms_flags: *mut nsStaticAtom;
897897
#[link_name = "_ZN9nsGkAtoms4flexE"]
898898
pub static nsGkAtoms_flex: *mut nsStaticAtom;
899-
#[link_name = "_ZN9nsGkAtoms9flexgroupE"]
900-
pub static nsGkAtoms_flexgroup: *mut nsStaticAtom;
901899
#[link_name = "_ZN9nsGkAtoms4flipE"]
902900
pub static nsGkAtoms_flip: *mut nsStaticAtom;
903901
#[link_name = "_ZN9nsGkAtoms8floatingE"]
@@ -6117,8 +6115,6 @@ cfg_if! {
61176115
pub static nsGkAtoms_flags: *mut nsStaticAtom;
61186116
#[link_name = "?flex@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
61196117
pub static nsGkAtoms_flex: *mut nsStaticAtom;
6120-
#[link_name = "?flexgroup@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
6121-
pub static nsGkAtoms_flexgroup: *mut nsStaticAtom;
61226118
#[link_name = "?flip@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
61236119
pub static nsGkAtoms_flip: *mut nsStaticAtom;
61246120
#[link_name = "?floating@nsGkAtoms@@2PEAVnsStaticAtom@@EA"]
@@ -11338,8 +11334,6 @@ cfg_if! {
1133811334
pub static nsGkAtoms_flags: *mut nsStaticAtom;
1133911335
#[link_name = "\x01?flex@nsGkAtoms@@2PAVnsStaticAtom@@A"]
1134011336
pub static nsGkAtoms_flex: *mut nsStaticAtom;
11341-
#[link_name = "\x01?flexgroup@nsGkAtoms@@2PAVnsStaticAtom@@A"]
11342-
pub static nsGkAtoms_flexgroup: *mut nsStaticAtom;
1134311337
#[link_name = "\x01?flip@nsGkAtoms@@2PAVnsStaticAtom@@A"]
1134411338
pub static nsGkAtoms_flip: *mut nsStaticAtom;
1134511339
#[link_name = "\x01?floating@nsGkAtoms@@2PAVnsStaticAtom@@A"]
@@ -16562,8 +16556,6 @@ macro_rules! atom {
1656216556
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_flags as *mut _) } }};
1656316557
("flex") =>
1656416558
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_flex as *mut _) } }};
16565-
("flexgroup") =>
16566-
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_flexgroup as *mut _) } }};
1656716559
("flip") =>
1656816560
{{ #[allow(unsafe_code)] #[allow(unused_unsafe)]unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_flip as *mut _) } }};
1656916561
("floating") =>

components/style/gecko/generated/bindings.rs

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use gecko_bindings::structs::mozilla::css::URLValueData;
1717
use gecko_bindings::structs::mozilla::dom::CallerType;
1818
use gecko_bindings::structs::mozilla::AnonymousCounterStyle;
1919
use gecko_bindings::structs::mozilla::AtomArray;
20+
use gecko_bindings::structs::mozilla::FontWeight;
2021
use gecko_bindings::structs::mozilla::MallocSizeOf;
2122
use gecko_bindings::structs::mozilla::OriginFlags;
2223
use gecko_bindings::structs::mozilla::UniquePtr;
@@ -218,9 +219,6 @@ unsafe impl Sync for nsStyleUnit {}
218219
use gecko_bindings::structs::nsStyleUserInterface;
219220
unsafe impl Send for nsStyleUserInterface {}
220221
unsafe impl Sync for nsStyleUserInterface {}
221-
use gecko_bindings::structs::nsStyleVariables;
222-
unsafe impl Send for nsStyleVariables {}
223-
unsafe impl Sync for nsStyleVariables {}
224222
use gecko_bindings::structs::nsStyleVisibility;
225223
unsafe impl Send for nsStyleVisibility {}
226224
unsafe 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" {
14521450
extern "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+
}
14551456
extern "C" {
14561457
pub fn Gecko_CSSValue_SetFunction(css_value: nsCSSValueBorrowedMut, len: i32);
14571458
}
@@ -1510,6 +1511,12 @@ extern "C" {
15101511
extern "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+
}
15131520
extern "C" {
15141521
pub fn Gecko_nsStyleFont_SetLang(font: *mut nsStyleFont, atom: *mut nsAtom);
15151522
}
@@ -1701,21 +1708,6 @@ extern "C" {
17011708
extern "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-
}
17191711
extern "C" {
17201712
pub fn Gecko_Construct_Default_nsStyleBackground(
17211713
ptr: *mut nsStyleBackground,
@@ -1985,6 +1977,9 @@ extern "C" {
19851977
extern "C" {
19861978
pub fn Servo_Element_IsDisplayNone(element: RawGeckoElementBorrowed) -> bool;
19871979
}
1980+
extern "C" {
1981+
pub fn Servo_Element_IsDisplayContents(element: RawGeckoElementBorrowed) -> bool;
1982+
}
19881983
extern "C" {
19891984
pub fn Servo_Element_IsPrimaryStyleReusedViaRuleNode(element: RawGeckoElementBorrowed) -> bool;
19901985
}
@@ -3389,6 +3384,9 @@ extern "C" {
33893384
extern "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+
}
33923390
extern "C" {
33933391
pub fn Servo_PseudoClass_GetStates(name: *const nsACString) -> u64;
33943392
}

0 commit comments

Comments
 (0)