mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Add safer bindings for RefPtr
This commit is contained in:
parent
dc5dc5e614
commit
2bde9462b1
9 changed files with 249 additions and 76 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue