servo: Merge #3526 - Mask root layer rectangles to their boundaries (from mrobinson:masks-to-bounds); r=zwarich

This prevents iframes contents from overflowing their root layers.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4be0a07585b019d45dd83849818854566c5e118b
This commit is contained in:
Martin Robinson 2014-09-29 17:48:25 -06:00
parent bce5f7089e
commit e0360fa36f

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 => {}