mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Introduce LayoutDom::is
Just like Castable::is.
This commit is contained in:
parent
9c8540af5c
commit
f014da9565
4 changed files with 14 additions and 6 deletions
|
@ -141,7 +141,7 @@ impl<'ln> ServoLayoutNode<'ln> {
|
|||
|
||||
impl<'ln> NodeInfo for ServoLayoutNode<'ln> {
|
||||
fn is_element(&self) -> bool {
|
||||
unsafe { self.node.is_element_for_layout() }
|
||||
self.node.is_element_for_layout()
|
||||
}
|
||||
|
||||
fn is_text_node(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue