aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/virtualmethods.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-09-03 01:01:39 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-09-08 09:32:49 +0200
commite2b8febfd523ad26a72be27b85c3fc2ff89ea088 (patch)
tree1e4b924dfb36f9f1ca48b1e550704816786b9883 /components/script/dom/virtualmethods.rs
parent3f9b6f8586b60929ccbfe1cf51b84887ef711b77 (diff)
downloadservo-e2b8febfd523ad26a72be27b85c3fc2ff89ea088.tar.gz
servo-e2b8febfd523ad26a72be27b85c3fc2ff89ea088.zip
Implement adopting steps
https://dom.spec.whatwg.org/#concept-node-adopt https://github.com/whatwg/dom/pull/66
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r--components/script/dom/virtualmethods.rs9
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() {