mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Simplify the display list slightly
Now that WebRender uses an Iframe display item, we do not need the Noop item for the non-WebRender path. We can simply reuse the Iframe display item. Also remove the layer_id member from the LayeredItem struct, as it is unused.
This commit is contained in:
parent
e8aeebbac5
commit
474033c39f
3 changed files with 14 additions and 29 deletions
|
@ -504,8 +504,7 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
DisplayItem::LineClass(..) => {
|
||||
println!("TODO DisplayItem::LineClass");
|
||||
}
|
||||
DisplayItem::LayeredItemClass(..) |
|
||||
DisplayItem::NoopClass(..) => {
|
||||
DisplayItem::LayeredItemClass(..) => {
|
||||
panic!("Unexpected in webrender!");
|
||||
}
|
||||
DisplayItem::BoxShadowClass(ref item) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue