servo: Merge #18635 - Rename JS<T> to Dom<T>, Root<T> to DomRoot<T>, and other things (from servo:RENAME-ALL-THE-THINGS); r=emilio
Source-Repo: https://github.com/servo/servo Source-Revision: 1282e0d8080ae15307ac8d35941754f9d60f0d76
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::js::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