mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
style: Add TNode::owner_doc.
This commit is contained in:
parent
4d4fa69018
commit
bfa7cd7d9e
4 changed files with 28 additions and 19 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue