mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Remove unused TNode::is_in_doc.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
7afe393f23
commit
96b71754c3
3 changed files with 0 additions and 12 deletions
|
@ -213,10 +213,6 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
|
||||||
unsafe fn set_can_be_fragmented(&self, value: bool) {
|
unsafe fn set_can_be_fragmented(&self, value: bool) {
|
||||||
self.node.set_flag(CAN_BE_FRAGMENTED, value)
|
self.node.set_flag(CAN_BE_FRAGMENTED, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_in_doc(&self) -> bool {
|
|
||||||
unsafe { (*self.node.unsafe_get()).is_in_doc() }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'ln> LayoutNode for ServoLayoutNode<'ln> {
|
impl<'ln> LayoutNode for ServoLayoutNode<'ln> {
|
||||||
|
|
|
@ -160,10 +160,6 @@ pub trait TNode : Sized + Copy + Clone + Debug + NodeInfo {
|
||||||
|
|
||||||
/// Set whether this node can be fragmented.
|
/// Set whether this node can be fragmented.
|
||||||
unsafe fn set_can_be_fragmented(&self, value: bool);
|
unsafe fn set_can_be_fragmented(&self, value: bool);
|
||||||
|
|
||||||
/// Whether this node is in the document right now needed to clear the
|
|
||||||
/// restyle data appropriately on some forced restyles.
|
|
||||||
fn is_in_doc(&self) -> bool;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Wrapper to output the ElementData along with the node when formatting for
|
/// Wrapper to output the ElementData along with the node when formatting for
|
||||||
|
|
|
@ -270,10 +270,6 @@ impl<'ln> TNode for GeckoNode<'ln> {
|
||||||
// FIXME(SimonSapin): Servo uses this to implement CSS multicol / fragmentation
|
// FIXME(SimonSapin): Servo uses this to implement CSS multicol / fragmentation
|
||||||
// Maybe this isn’t useful for Gecko?
|
// Maybe this isn’t useful for Gecko?
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_in_doc(&self) -> bool {
|
|
||||||
unsafe { bindings::Gecko_IsInDocument(self.0) }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A wrapper on top of two kind of iterators, depending on the parent being
|
/// A wrapper on top of two kind of iterators, depending on the parent being
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue