mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove compositor layers when iframes are removed from doc or display:none.
This commit is contained in:
parent
6927bf6ff0
commit
86baef2cc0
10 changed files with 145 additions and 37 deletions
|
@ -52,6 +52,7 @@ use geom::{Point2D, Rect, Size2D};
|
|||
use gfx::display_list::{ClippingRegion, DisplayList};
|
||||
use rustc_serialize::{Encoder, Encodable};
|
||||
use msg::compositor_msg::LayerId;
|
||||
use msg::constellation_msg::ConstellationChan;
|
||||
use servo_util::geometry::{Au, MAX_AU};
|
||||
use servo_util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize};
|
||||
use servo_util::opts;
|
||||
|
@ -1915,6 +1916,10 @@ impl Flow for BlockFlow {
|
|||
CoordinateSystem::Parent)
|
||||
.translate(stacking_context_position));
|
||||
}
|
||||
|
||||
fn remove_compositor_layers(&self, constellation_chan: ConstellationChan) {
|
||||
self.fragment.remove_compositor_layers(constellation_chan);
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for BlockFlow {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue