mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove PseudoDisplayItemClass
Now that content box queries are made against the flow tree, we can remove PseudoDisplayItems from the display list.
This commit is contained in:
parent
d8a5199ba8
commit
2e8f1c08fa
2 changed files with 1 additions and 19 deletions
|
@ -420,13 +420,6 @@ pub enum DisplayItem {
|
|||
BorderDisplayItemClass(Box<BorderDisplayItem>),
|
||||
GradientDisplayItemClass(Box<GradientDisplayItem>),
|
||||
LineDisplayItemClass(Box<LineDisplayItem>),
|
||||
|
||||
/// A pseudo-display item that exists only so that queries like `ContentBoxQuery` and
|
||||
/// `ContentBoxesQuery` can be answered.
|
||||
///
|
||||
/// FIXME(pcwalton): This is really bogus. Those queries should not consult the display list
|
||||
/// but should instead consult the flow/box tree.
|
||||
PseudoDisplayItemClass(Box<BaseDisplayItem>),
|
||||
}
|
||||
|
||||
/// Information common to all display items.
|
||||
|
@ -639,8 +632,6 @@ impl DisplayItem {
|
|||
line.color,
|
||||
line.style)
|
||||
}
|
||||
|
||||
PseudoDisplayItemClass(_) => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -652,7 +643,6 @@ impl DisplayItem {
|
|||
BorderDisplayItemClass(ref border) => &border.base,
|
||||
GradientDisplayItemClass(ref gradient) => &gradient.base,
|
||||
LineDisplayItemClass(ref line) => &line.base,
|
||||
PseudoDisplayItemClass(ref base) => &**base,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -664,7 +654,6 @@ impl DisplayItem {
|
|||
BorderDisplayItemClass(ref mut border) => &mut border.base,
|
||||
GradientDisplayItemClass(ref mut gradient) => &mut gradient.base,
|
||||
LineDisplayItemClass(ref mut line) => &mut line.base,
|
||||
PseudoDisplayItemClass(ref mut base) => &mut **base,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -691,7 +680,6 @@ impl fmt::Show for DisplayItem {
|
|||
BorderDisplayItemClass(_) => "Border",
|
||||
GradientDisplayItemClass(_) => "Gradient",
|
||||
LineDisplayItemClass(_) => "Line",
|
||||
PseudoDisplayItemClass(_) => "Pseudo",
|
||||
},
|
||||
self.base().bounds,
|
||||
self.base().node.id()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue