mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
Rename Root<T> to DomRoot<T>
In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::codegen::Bindings::HTMLTrackElementBinding;
|
||||
use dom::bindings::root::Root;
|
||||
use dom::bindings::root::DomRoot;
|
||||
use dom::document::Document;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::node::Node;
|
||||
@@ -25,7 +25,7 @@ impl HTMLTrackElement {
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(local_name: LocalName,
|
||||
prefix: Option<Prefix>,
|
||||
document: &Document) -> Root<HTMLTrackElement> {
|
||||
document: &Document) -> DomRoot<HTMLTrackElement> {
|
||||
Node::reflect_node(box HTMLTrackElement::new_inherited(local_name, prefix, document),
|
||||
document,
|
||||
HTMLTrackElementBinding::Wrap)
|
||||
|
||||
Reference in New Issue
Block a user