mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
parent
a14bb68c3f
commit
829259fb79
41 changed files with 227 additions and 112 deletions
|
@ -5,6 +5,7 @@
|
|||
use dom::bindings::codegen::Bindings::DOMImplementationBinding;
|
||||
use dom::bindings::codegen::InheritTypes::NodeCast;
|
||||
use dom::bindings::error::{Fallible, InvalidCharacter, NamespaceError};
|
||||
use dom::bindings::global::Window;
|
||||
use dom::bindings::js::{JS, JSRef, Root, Temporary, OptionalRootable};
|
||||
use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object};
|
||||
use dom::bindings::utils::{QName, Name, InvalidXMLName, xml_name_type};
|
||||
|
@ -35,7 +36,7 @@ impl DOMImplementation {
|
|||
pub fn new(document: &JSRef<Document>) -> Temporary<DOMImplementation> {
|
||||
let window = document.window.root();
|
||||
reflect_dom_object(box DOMImplementation::new_inherited(document),
|
||||
&*window,
|
||||
&Window(*window),
|
||||
DOMImplementationBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue