mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Remove unused TElement::layout_parent_element.
This commit is contained in:
parent
719709f0d5
commit
c65b9a307c
1 changed files with 0 additions and 10 deletions
|
@ -316,16 +316,6 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
||||||
depth
|
depth
|
||||||
}
|
}
|
||||||
|
|
||||||
/// While doing a reflow, the element at the root has no parent, as far as we're
|
|
||||||
/// concerned. This method returns `None` at the reflow root.
|
|
||||||
fn layout_parent_element(self, reflow_root: OpaqueNode) -> Option<Self> {
|
|
||||||
if self.as_node().opaque() == reflow_root {
|
|
||||||
None
|
|
||||||
} else {
|
|
||||||
self.parent_element()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Get this node's parent element from the perspective of a restyle
|
/// Get this node's parent element from the perspective of a restyle
|
||||||
/// traversal.
|
/// traversal.
|
||||||
fn traversal_parent(&self) -> Option<Self> {
|
fn traversal_parent(&self) -> Option<Self> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue