mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Hook CE registry into element creation
This commit is contained in:
parent
3e4021ef1a
commit
6697f5469d
25 changed files with 146 additions and 240 deletions
|
@ -428,6 +428,11 @@ impl Node {
|
|||
self.preceding_siblings().count() as u32
|
||||
}
|
||||
|
||||
/// Returns true if this node has a parent.
|
||||
pub fn has_parent(&self) -> bool {
|
||||
self.parent_node.get().is_some()
|
||||
}
|
||||
|
||||
pub fn children_count(&self) -> u32 {
|
||||
self.children_count.get()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue