Remove compositor layers when iframes are removed from doc or display:none.

This commit is contained in:
Glenn Watson 2015-03-03 09:38:39 +10:00
parent 6927bf6ff0
commit 86baef2cc0
10 changed files with 145 additions and 37 deletions

View file

@ -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 {