diff options
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index 16516356e83..2c329fa92a9 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -93,6 +93,15 @@ pub trait VirtualMethods { } } + /// Invoked during a DOM tree mutation after a node becomes connected, once all + /// related DOM tree mutations have been applied. + /// <https://dom.spec.whatwg.org/#concept-node-post-connection-ext> + fn post_connection_steps(&self) { + if let Some(s) = self.super_type() { + s.post_connection_steps(); + } + } + /// Called when a Node is appended to a tree, where 'tree_connected' indicates /// whether the tree is part of a Document. fn bind_to_tree(&self, context: &BindContext) { |