mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Mask root layer rectangles to their boundaries
This prevents iframes contents from overflowing their root layers.
This commit is contained in:
parent
01b4100756
commit
a75594d7cf
4 changed files with 17 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue