mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement adopting steps
https://dom.spec.whatwg.org/#concept-node-adopt https://github.com/whatwg/dom/pull/66
This commit is contained in:
parent
3f9b6f8586
commit
e2b8febfd5
2 changed files with 17 additions and 15 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue