mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Eliminate untraversed node types from LayoutNodeType.
MozReview-Commit-ID: 926ReI1BSsf
This commit is contained in:
parent
6b40f97289
commit
97fd61f512
4 changed files with 5 additions and 30 deletions
|
@ -1472,13 +1472,6 @@ impl<'a, ConcreteThreadSafeLayoutNode> PostorderNodeMutTraversal<ConcreteThreadS
|
|||
}
|
||||
Some(LayoutNodeType::Text) =>
|
||||
(display::T::inline, float::T::none, position::T::static_),
|
||||
Some(LayoutNodeType::Comment) |
|
||||
Some(LayoutNodeType::ProcessingInstruction) |
|
||||
Some(LayoutNodeType::DocumentType) |
|
||||
Some(LayoutNodeType::DocumentFragment) |
|
||||
Some(LayoutNodeType::Document) => {
|
||||
(display::T::none, float::T::none, position::T::static_)
|
||||
}
|
||||
};
|
||||
|
||||
debug!("building flow for node: {:?} {:?} {:?} {:?}", display, float, positioning, node.type_id());
|
||||
|
@ -1615,12 +1608,7 @@ impl<ConcreteThreadSafeLayoutNode> NodeUtils for ConcreteThreadSafeLayoutNode
|
|||
where ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode {
|
||||
fn is_replaced_content(&self) -> bool {
|
||||
match self.type_id() {
|
||||
Some(LayoutNodeType::Comment) |
|
||||
Some(LayoutNodeType::ProcessingInstruction) |
|
||||
Some(LayoutNodeType::Text) |
|
||||
Some(LayoutNodeType::DocumentType) |
|
||||
Some(LayoutNodeType::DocumentFragment) |
|
||||
Some(LayoutNodeType::Document) |
|
||||
Some(LayoutNodeType::Element(LayoutElementType::HTMLImageElement)) |
|
||||
Some(LayoutNodeType::Element(LayoutElementType::HTMLIFrameElement)) |
|
||||
Some(LayoutNodeType::Element(LayoutElementType::HTMLCanvasElement)) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue