aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-25 08:46:51 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-27 14:55:41 +0100
commitadf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9 (patch)
treec45c20f0cb4f26dd5f43d2a59a7ece451e0b3629 /components/layout/construct.rs
parent831979d6a7e6fc615434a6585710b2becb7dbf42 (diff)
downloadservo-adf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9.tar.gz
servo-adf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9.zip
Add XMLDocument object
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 73b81e2c54b..53b2416ee8d 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -1439,7 +1439,7 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> {
Some(NodeTypeId::CharacterData(CharacterDataTypeId::ProcessingInstruction)) |
Some(NodeTypeId::DocumentType) |
Some(NodeTypeId::DocumentFragment) |
- Some(NodeTypeId::Document) => {
+ Some(NodeTypeId::Document(_)) => {
(display::T::none, float::T::none, position::T::static_)
}
};
@@ -1587,7 +1587,7 @@ impl<'ln> NodeUtils for ServoThreadSafeLayoutNode<'ln> {
Some(NodeTypeId::CharacterData(_)) |
Some(NodeTypeId::DocumentType) |
Some(NodeTypeId::DocumentFragment) |
- Some(NodeTypeId::Document) |
+ Some(NodeTypeId::Document(_)) |
Some(NodeTypeId::Element(ElementTypeId::HTMLElement(
HTMLElementTypeId::HTMLImageElement))) |
Some(NodeTypeId::Element(ElementTypeId::HTMLElement(