style: Add TNode::owner_doc.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-26 13:03:02 +02:00
parent 4d4fa69018
commit bfa7cd7d9e
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 28 additions and 19 deletions

View file

@ -166,6 +166,9 @@ pub trait TNode : Sized + Copy + Clone + Debug + NodeInfo + PartialEq {
/// Get this node's next sibling.
fn next_sibling(&self) -> Option<Self>;
/// Get the owner document of this node.
fn owner_doc(&self) -> Self::ConcreteDocument;
/// Iterate over the DOM children of a node.
fn dom_children(&self) -> DomChildren<Self> {
DomChildren(self.first_child())