From 870ccd95d2fd9afbc0128bd6b44391eb695554c9 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 22 Feb 2014 21:03:39 +0100 Subject: Remove DocumentTypeId. --- src/components/main/layout/construct.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/main/layout/construct.rs') diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 7ca32d95f64..66192647bcd 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -644,7 +644,7 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> { CommentNodeTypeId | DoctypeNodeTypeId | DocumentFragmentNodeTypeId | - DocumentNodeTypeId(_) | + DocumentNodeTypeId | ProcessingInstructionNodeTypeId => (display::none, float::none, position::static_), }; @@ -717,7 +717,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> { CommentNodeTypeId | DoctypeNodeTypeId | DocumentFragmentNodeTypeId | - DocumentNodeTypeId(_) | + DocumentNodeTypeId | ElementNodeTypeId(HTMLImageElementTypeId) => true, ElementNodeTypeId(HTMLObjectElementTypeId) => self.has_object_data(), ElementNodeTypeId(_) => false, -- cgit v1.2.3