mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +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
|
@ -27,7 +27,7 @@ use gfx::color;
|
|||
use gfx::display_list::{BaseDisplayItem, BorderDisplayItem, BorderDisplayItemClass, DisplayItem};
|
||||
use gfx::display_list::{DisplayList, GradientDisplayItem, GradientDisplayItemClass, GradientStop};
|
||||
use gfx::display_list::{ImageDisplayItem, ImageDisplayItemClass, LineDisplayItem, BorderRadii};
|
||||
use gfx::display_list::{LineDisplayItemClass, PseudoDisplayItemClass, SidewaysLeft, SidewaysRight};
|
||||
use gfx::display_list::{LineDisplayItemClass, SidewaysLeft, SidewaysRight};
|
||||
use gfx::display_list::{SolidColorDisplayItem, SolidColorDisplayItemClass, StackingContext};
|
||||
use gfx::display_list::{TextDisplayItem, TextDisplayItemClass, Upright};
|
||||
use gfx::paint_task::PaintLayer;
|
||||
|
@ -550,12 +550,6 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
let level =
|
||||
StackingLevel::from_background_and_border_level(background_and_border_level);
|
||||
|
||||
// Add a pseudo-display item for content box queries. This is a very bogus thing to do.
|
||||
let base_display_item = box BaseDisplayItem::new(absolute_fragment_bounds,
|
||||
self.node,
|
||||
*clip_rect);
|
||||
display_list.push(PseudoDisplayItemClass(base_display_item), level);
|
||||
|
||||
// Add the background to the list, if applicable.
|
||||
match self.inline_context {
|
||||
Some(ref inline_context) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue