mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add Comment and Doctype nodes to box_builder
This commit is contained in:
parent
aa9fc2483f
commit
e32da820e7
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
#[doc="Creates CSS boxes from a DOM."]
|
||||
|
||||
import css::values::{DisplayType, Block, Inline, DisplayNone};
|
||||
import dom::base::{ElementData, HTMLDivElement, HTMLImageElement, Element, Text, Node};
|
||||
import dom::base::{ElementData, HTMLDivElement, HTMLImageElement, Element, Text, Node, Doctype, Comment};
|
||||
import gfx::geometry::zero_size_au;
|
||||
import layout::base::{Appearance, BTree, BlockBox, Box, BoxKind, InlineBox, IntrinsicBox, NTree};
|
||||
import layout::base::{TextBoxKind};
|
||||
|
@ -173,7 +173,8 @@ impl Node : PrivBoxBuilder {
|
|||
}
|
||||
}
|
||||
},
|
||||
_ => fail ~"unstyleable node type encountered"
|
||||
~Doctype(*)
|
||||
| ~Comment(*) => None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue