diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-10-25 13:52:27 -0700 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2016-10-27 09:15:33 -0700 |
commit | 97fd61f51260c273882e37cad76156d84ce909a3 (patch) | |
tree | 3705acdb89284cedf3b3820fbbef94588e2a3725 /components/layout/construct.rs | |
parent | 6b40f97289c4c5a20b539992c3d511b3bf470f28 (diff) | |
download | servo-97fd61f51260c273882e37cad76156d84ce909a3.tar.gz servo-97fd61f51260c273882e37cad76156d84ce909a3.zip |
Eliminate untraversed node types from LayoutNodeType.
MozReview-Commit-ID: 926ReI1BSsf
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index d3a0c63e7a6..7c7eff8bc0c 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -1472,13 +1472,6 @@ impl<'a, ConcreteThreadSafeLayoutNode> PostorderNodeMutTraversal<ConcreteThreadS } Some(LayoutNodeType::Text) => (display::T::inline, float::T::none, position::T::static_), - Some(LayoutNodeType::Comment) | - Some(LayoutNodeType::ProcessingInstruction) | - Some(LayoutNodeType::DocumentType) | - Some(LayoutNodeType::DocumentFragment) | - Some(LayoutNodeType::Document) => { - (display::T::none, float::T::none, position::T::static_) - } }; debug!("building flow for node: {:?} {:?} {:?} {:?}", display, float, positioning, node.type_id()); @@ -1615,12 +1608,7 @@ impl<ConcreteThreadSafeLayoutNode> NodeUtils for ConcreteThreadSafeLayoutNode where ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode { fn is_replaced_content(&self) -> bool { match self.type_id() { - Some(LayoutNodeType::Comment) | - Some(LayoutNodeType::ProcessingInstruction) | Some(LayoutNodeType::Text) | - Some(LayoutNodeType::DocumentType) | - Some(LayoutNodeType::DocumentFragment) | - Some(LayoutNodeType::Document) | Some(LayoutNodeType::Element(LayoutElementType::HTMLImageElement)) | Some(LayoutNodeType::Element(LayoutElementType::HTMLIFrameElement)) | Some(LayoutNodeType::Element(LayoutElementType::HTMLCanvasElement)) | |