From 5d6ac65e04f4d03d2b1fbbe45cd1a01dbc6bbe28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 14 Jan 2017 23:33:40 +0100 Subject: [PATCH] Bug 1331213: Add an API to get nsMediaFeatures::features. r=heycam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can't use the generated ones if we want a windows build. MozReview-Commit-ID: 200LNgWl5Lm Signed-off-by: Emilio Cobos Álvarez --- components/style/build_gecko.rs | 1 + components/style/gecko_bindings/bindings.rs | 4 ++++ 2 files changed, 5 insertions(+) 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: