aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorMichael Wu <mwu@mozilla.com>2015-07-10 21:27:41 -0400
committerAnthony Ramine <n.oxyde@gmail.com>2015-09-12 01:09:46 +0200
commit941f7dc04bc02ad196e86c5167ea292477fb7284 (patch)
treebf867d7a25d243a9ff38d346c219a2aac38eac5e /components/layout/construct.rs
parent8d7ba12f28a873880c1f51b122d4fc185294c849 (diff)
downloadservo-941f7dc04bc02ad196e86c5167ea292477fb7284.tar.gz
servo-941f7dc04bc02ad196e86c5167ea292477fb7284.zip
Move EventTargetTypeId/NodeTypeId to DOMClass
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index dd1d58a6acc..8b4fd32d56c 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -1430,6 +1430,8 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> {
Some(NodeTypeId::Document) => {
(display::T::none, float::T::none, position::T::static_)
}
+ Some(NodeTypeId::Node) => unreachable!(),
+ Some(NodeTypeId::CharacterData(CharacterDataTypeId::CharacterData)) => unreachable!(),
};
debug!("building flow for node: {:?} {:?} {:?} {:?}", display, float, positioning, node.type_id());
@@ -1585,6 +1587,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> {
Some(NodeTypeId::Element(ElementTypeId::HTMLElement(
HTMLElementTypeId::HTMLObjectElement))) => self.has_object_data(),
Some(NodeTypeId::Element(_)) => false,
+ Some(NodeTypeId::Node) => unreachable!(),
}
}