mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove remaining reference to the long-disappeared JSRef type.
This commit is contained in:
parent
754120684b
commit
ff0992401e
2 changed files with 3 additions and 2 deletions
|
@ -431,7 +431,7 @@ impl<T: Reflectable> LayoutJS<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get an `Option<JSRef<T>>` out of an `Option<Root<T>>`
|
/// Get an `Option<&T>` out of an `Option<Root<T>>`
|
||||||
pub trait RootedReference<T> {
|
pub trait RootedReference<T> {
|
||||||
/// Obtain a safe optional reference to the wrapped JS owned-value that
|
/// Obtain a safe optional reference to the wrapped JS owned-value that
|
||||||
/// cannot outlive the lifetime of this root.
|
/// cannot outlive the lifetime of this root.
|
||||||
|
|
|
@ -33,7 +33,8 @@
|
||||||
//!
|
//!
|
||||||
//! The instance methods for an interface `Foo` are defined on a
|
//! The instance methods for an interface `Foo` are defined on a
|
||||||
//! `dom::bindings::codegen::Bindings::FooBindings::FooMethods` trait. This
|
//! `dom::bindings::codegen::Bindings::FooBindings::FooMethods` trait. This
|
||||||
//! trait is then implemented for `JSRef<'a, Foo>`.
|
//! trait is then implemented for `Foo`. (All methods take an `&self`
|
||||||
|
//! parameter, as pointers to DOM objects can be freely aliased.)
|
||||||
//!
|
//!
|
||||||
//! The return type and argument types are determined [as described below]
|
//! The return type and argument types are determined [as described below]
|
||||||
//! (#rust-reflections-of-webidl-types).
|
//! (#rust-reflections-of-webidl-types).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue