style: Remove unused TElement::layout_parent_element. draft
authorCameron McCormack <cam@mcc.id.au>
Fri, 09 Jun 2017 12:06:12 +0800
changeset 591539 6f8f591c155887802817fb7fc8888bf3e7cc679e
parent 591538 51985af543acb92c4746355a7eeb785f3bd0a43f
child 591540 5cfceb4ea69244d81a4710670e5071fb16b99192
child 591541 496419832511f902d4302c207035a58600e405c5
push id63078
push userbmo:cam@mcc.id.au
push dateFri, 09 Jun 2017 06:22:34 +0000
milestone55.0a1
style: Remove unused TElement::layout_parent_element. MozReview-Commit-ID: GuY5TZEGBU4
servo/components/style/dom.rs
--- a/servo/components/style/dom.rs
+++ b/servo/components/style/dom.rs
@@ -311,26 +311,16 @@ pub trait TElement : Eq + PartialEq + De
         while let Some(parent) = curr.traversal_parent() {
             depth += 1;
             curr = parent;
         }
 
         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
     /// traversal.
     fn traversal_parent(&self) -> Option<Self> {
         self.as_node().traversal_parent()
     }
 
     /// Returns the parent element we should inherit from.
     ///