Introduce LayoutDom::is

Just like Castable::is.
This commit is contained in:
Anthony Ramine 2020-03-31 22:06:26 +02:00
parent 9c8540af5c
commit f014da9565
4 changed files with 14 additions and 6 deletions

View file

@ -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 {