Mask root layer rectangles to their boundaries

This prevents iframes contents from overflowing their root layers.
This commit is contained in:
Martin Robinson 2014-09-23 18:41:06 -07:00
parent 01b4100756
commit a75594d7cf
4 changed files with 17 additions and 0 deletions

View file

@ -456,6 +456,7 @@ impl IOCompositor {
match frame_rect {
Some(ref frame_rect) => {
*root_layer.masks_to_bounds.borrow_mut() = true;
*root_layer.bounds.borrow_mut() = frame_rect * self.device_pixels_per_page_px();
}
None => {}