mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
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:
parent
bce5f7089e
commit
e0360fa36f
@ -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 => {}
|
||||
|
Loading…
Reference in New Issue
Block a user