mirror of
https://github.com/servo/servo.git
synced 2025-07-31 19:20:22 +01:00
Remove DisplayListTraversal
It's no longer necessary because we always just walk through the display list one item at a time.
This commit is contained in:
parent
770b348091
commit
2e2ed444d5
2 changed files with 3 additions and 94 deletions
|
@ -10,8 +10,7 @@
|
|||
use app_units::Au;
|
||||
use euclid::{Point2D, Vector2D, Rect, SideOffsets2D, Size2D};
|
||||
use gfx::display_list::{BorderDetails, BorderRadii, BoxShadowClipMode, ClipScrollNodeType};
|
||||
use gfx::display_list::{ClippingRegion, DisplayItem, DisplayList, DisplayListTraversal};
|
||||
use gfx::display_list::StackingContextType;
|
||||
use gfx::display_list::{ClippingRegion, DisplayItem, DisplayList, StackingContextType};
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use style::computed_values::{image_rendering, mix_blend_mode, transform_style};
|
||||
use style::values::computed::{BorderStyle, Filter};
|
||||
|
@ -222,7 +221,6 @@ impl ToTransformStyle for transform_style::T {
|
|||
|
||||
impl WebRenderDisplayListConverter for DisplayList {
|
||||
fn convert_to_webrender(&self, pipeline_id: PipelineId) -> DisplayListBuilder {
|
||||
let traversal = DisplayListTraversal::new(self);
|
||||
let mut builder = DisplayListBuilder::with_capacity(pipeline_id.to_webrender(),
|
||||
self.bounds().size.to_sizef(),
|
||||
1024 * 1024); // 1 MB of space
|
||||
|
@ -230,7 +228,7 @@ impl WebRenderDisplayListConverter for DisplayList {
|
|||
let mut current_clip_and_scroll_info = pipeline_id.root_clip_and_scroll_info();
|
||||
builder.push_clip_and_scroll_info(current_clip_and_scroll_info);
|
||||
|
||||
for item in traversal {
|
||||
for item in &self.list {
|
||||
item.convert_to_webrender(&mut builder, &mut current_clip_and_scroll_info);
|
||||
}
|
||||
builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue