diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index f5bb4a598f3..6bb3b4aeddb 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -517,6 +517,7 @@ mod bindings { "nsCursorImage", "nsFont", "nsIAtom", + "nsMediaFeature", "nsRestyleHint", "nsStyleBackground", "nsStyleBorder", diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index 9d355444e27..19635b5af26 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -29,6 +29,7 @@ use gecko_bindings::structs::nsChangeHint; use gecko_bindings::structs::nsCursorImage; use gecko_bindings::structs::nsFont; use gecko_bindings::structs::nsIAtom; +use gecko_bindings::structs::nsMediaFeature; use gecko_bindings::structs::nsRestyleHint; use gecko_bindings::structs::nsStyleBackground; unsafe impl Send for nsStyleBackground {} @@ -759,6 +760,9 @@ extern "C" { extern "C" { pub fn Gecko_PropertyId_IsPrefEnabled(id: nsCSSPropertyID) -> bool; } +extern "C" { + pub fn Gecko_GetMediaFeatures() -> *const nsMediaFeature; +} extern "C" { pub fn Gecko_Construct_Default_nsStyleFont(ptr: *mut nsStyleFont, pres_context: