diff options
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index 6812703ffe6..7afb3be4624 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -98,7 +98,14 @@ pub trait VirtualMethods { } } - /// https://dom.spec.whatwg.org/#concept-node-clone (step 5) + /// https://dom.spec.whatwg.org/#concept-node-adopt-ext + fn adopting_steps(&self, old_doc: &Document) { + if let Some(ref s) = self.super_type() { + s.adopting_steps(old_doc); + } + } + + /// https://dom.spec.whatwg.org/#concept-node-clone-ext fn cloning_steps(&self, copy: &Node, maybe_doc: Option<&Document>, clone_children: CloneChildrenFlag) { if let Some(ref s) = self.super_type() { |