mirror of
https://github.com/servo/servo.git
synced 2025-10-07 12:09:23 +01:00
Merge pull request #2771 from jviereck/fix_2230_link_DOMImplementation_to_document
Link DOMImplementation to the Document; r=Ms2ger
This commit is contained in:
commit
df4bb6947e
2 changed files with 14 additions and 13 deletions
|
@ -329,8 +329,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
// http://dom.spec.whatwg.org/#dom-document-implementation
|
||||
fn Implementation(&self) -> Temporary<DOMImplementation> {
|
||||
if self.implementation.get().is_none() {
|
||||
let window = self.window.root();
|
||||
self.implementation.assign(Some(DOMImplementation::new(&*window)));
|
||||
self.implementation.assign(Some(DOMImplementation::new(self)));
|
||||
}
|
||||
Temporary::new(self.implementation.get().get_ref().clone())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue