Add safer bindings for RefPtr

This commit is contained in:
Manish Goregaokar 2016-10-13 16:59:10 +05:30
parent dc5dc5e614
commit 2bde9462b1
9 changed files with 249 additions and 76 deletions

View file

@ -896,9 +896,9 @@ fn static_assert() {
Gecko_SetMozBinding(&mut self.gecko,
url.as_str().as_ptr(),
url.as_str().len() as u32,
extra_data.base.as_raw(),
extra_data.referrer.as_raw(),
extra_data.principal.as_raw());
extra_data.base.get(),
extra_data.referrer.get(),
extra_data.principal.get());
}
}
}

View file

@ -922,7 +922,7 @@ ${helpers.single_keyword("-moz-appearance",
// Non-standard: https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-binding
<%helpers:longhand name="-moz-binding" products="gecko" animatable="False" disable_when_testing="True">
use cssparser::{CssStringWriter, ToCss};
use gecko_bindings::ptr::{GeckoArcPrincipal, GeckoArcURI};
use gecko_bindings::sugar::refptr::{GeckoArcPrincipal, GeckoArcURI};
use std::fmt::{self, Write};
use url::Url;
use values::specified::UrlExtraData;