Move is_connected function from style to layout, where it is used

This commit is contained in:
Fernando Jiménez Moreno 2019-03-07 13:59:23 +01:00
parent 5be6779f9a
commit 5a165c6bd8
3 changed files with 7 additions and 7 deletions

View file

@ -306,10 +306,6 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
fn is_in_document(&self) -> bool {
unsafe { self.node.get_flag(NodeFlags::IS_IN_DOC) }
}
fn is_connected(&self) -> bool {
unsafe { self.node.get_flag(NodeFlags::IS_CONNECTED) }
}
}
impl<'ln> LayoutNode for ServoLayoutNode<'ln> {
@ -340,6 +336,10 @@ impl<'ln> LayoutNode for ServoLayoutNode<'ln> {
unsafe fn take_style_and_layout_data(&self) -> OpaqueStyleAndLayoutData {
self.get_jsmanaged().take_style_and_layout_data()
}
fn is_connected(&self) -> bool {
unsafe { self.node.get_flag(NodeFlags::IS_CONNECTED) }
}
}
impl<'ln> GetLayoutData for ServoLayoutNode<'ln> {