mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #9366 - Ms2ger:jsref, r=nox
Remove remaining reference to the long-disappeared JSRef type. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9366) <!-- Reviewable:end -->
This commit is contained in:
commit
c8eb92bbf2
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> {
|
||||
/// Obtain a safe optional reference to the wrapped JS owned-value that
|
||||
/// cannot outlive the lifetime of this root.
|
||||
|
|
|
@ -33,7 +33,8 @@
|
|||
//!
|
||||
//! The instance methods for an interface `Foo` are defined on a
|
||||
//! `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]
|
||||
//! (#rust-reflections-of-webidl-types).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue