mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Upgrade Rust.
This commit is contained in:
parent
8b6f62c195
commit
b91e6f30e0
132 changed files with 764 additions and 738 deletions
|
@ -65,12 +65,12 @@ pub enum LayoutQuery {
|
|||
|
||||
/// The address of a node known to be valid. These must only be sent from content -> layout,
|
||||
/// because we do not trust layout.
|
||||
pub struct TrustedNodeAddress(pub *c_void);
|
||||
pub struct TrustedNodeAddress(pub *const c_void);
|
||||
|
||||
impl<S: Encoder<E>, E> Encodable<S, E> for TrustedNodeAddress {
|
||||
fn encode(&self, s: &mut S) -> Result<(), E> {
|
||||
let TrustedNodeAddress(addr) = *self;
|
||||
let node = addr as *Node;
|
||||
let node = addr as *const Node;
|
||||
unsafe {
|
||||
JS::from_raw(node).encode(s)
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ impl<S: Encoder<E>, E> Encodable<S, E> for TrustedNodeAddress {
|
|||
|
||||
/// The address of a node. Layout sends these back. They must be validated via
|
||||
/// `from_untrusted_node_address` before they can be used, because we do not trust layout.
|
||||
pub type UntrustedNodeAddress = *c_void;
|
||||
pub type UntrustedNodeAddress = *const c_void;
|
||||
|
||||
pub struct ContentBoxResponse(pub Rect<Au>);
|
||||
pub struct ContentBoxesResponse(pub Vec<Rect<Au>>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue