aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/construct.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-02-24 17:13:46 -0500
committerbors-servo <release+servo@mozilla.com>2014-02-24 17:13:46 -0500
commit22760b6665c75f6908bcfd7cad4de111187ac6f7 (patch)
tree652dca921dcb0a174585a34d300b4f288074fb9c /src/components/main/layout/construct.rs
parentffcf3b2905b7f9e886904015b1583e93f78f1199 (diff)
parent870ccd95d2fd9afbc0128bd6b44391eb695554c9 (diff)
downloadservo-22760b6665c75f6908bcfd7cad4de111187ac6f7.tar.gz
servo-22760b6665c75f6908bcfd7cad4de111187ac6f7.zip
auto merge of #1739 : Ms2ger/servo/document-cleanup, r=jdm
The specs currently have only Document; this may well change, but the split won't be along the lines we've implemented right now. In the meantime, this simplifies our code quite a bit.
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r--src/components/main/layout/construct.rs4
1 files changed, 2 insertions, 2 deletions
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,