aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/build_gecko.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/build_gecko.rs')
-rw-r--r--components/style/build_gecko.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs
index 8c3e87097a6..fe52deaac87 100644
--- a/components/style/build_gecko.rs
+++ b/components/style/build_gecko.rs
@@ -429,10 +429,6 @@ mod bindings {
"mozilla::dom::Sequence",
"mozilla::dom::Optional",
"mozilla::dom::Nullable",
- "nsAString_internal_char_traits",
- "nsAString_internal_incompatible_char_type",
- "nsACString_internal_char_traits",
- "nsACString_internal_incompatible_char_type",
"RefPtr_Proxy",
"RefPtr_Proxy_member_function",
"nsAutoPtr_Proxy",
@@ -461,6 +457,10 @@ mod bindings {
"mozilla::StyleAnimationValue",
"StyleAnimationValue", // pulls in a whole bunch of stuff we don't need in the bindings
];
+ let blacklist = [
+ ".*_char_traits",
+ ".*_incompatible_char_type",
+ ];
struct MappedGenericType {
generic: bool,
@@ -499,6 +499,9 @@ mod bindings {
for &ty in opaque_types.iter() {
builder = builder.opaque_type(ty);
}
+ for &ty in blacklist.iter() {
+ builder = builder.hide_type(ty);
+ }
for ty in servo_mapped_generic_types.iter() {
let gecko_name = ty.gecko.rsplit("::").next().unwrap();
builder = builder.hide_type(ty.gecko)
@@ -722,6 +725,7 @@ pub fn generate() {
use self::common::*;
use std::fs;
use std::thread;
+ println!("cargo:rerun-if-changed=build_gecko.rs");
fs::create_dir_all(&*OUTDIR_PATH).unwrap();
let threads = vec![
thread::spawn(|| bindings::generate_structs(BuildType::Debug)),