Skip to content

Commit

Permalink
Bug 1331213: Add an API to get nsMediaFeatures::features. r=heycam
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
emilio committed Jan 17, 2017
1 parent 7d2f43d commit 5d6ac65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/style/build_gecko.rs
Expand Up @@ -517,6 +517,7 @@ mod bindings {
"nsCursorImage",
"nsFont",
"nsIAtom",
"nsMediaFeature",
"nsRestyleHint",
"nsStyleBackground",
"nsStyleBorder",
Expand Down
4 changes: 4 additions & 0 deletions components/style/gecko_bindings/bindings.rs
Expand Up @@ -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 {}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5d6ac65

Please sign in to comment.