Bug 1331213: Add an API to get nsMediaFeatures::features. r=heycam

We can't use the generated ones if we want a windows build.

MozReview-Commit-ID: 200LNgWl5Lm
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-01-14 23:33:40 +01:00
parent 7d2f43df58
commit 5d6ac65e04
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 5 additions and 0 deletions

View file

@ -517,6 +517,7 @@ mod bindings {
"nsCursorImage",
"nsFont",
"nsIAtom",
"nsMediaFeature",
"nsRestyleHint",
"nsStyleBackground",
"nsStyleBorder",

View file

@ -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: