diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index c5a11fa1605..6c39c3b1c7a 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -1178,10 +1178,11 @@ fn create_root_layer_for_pipeline_and_rect(pipeline: &CompositionPipeline, WantsScrollEvents, opts::get().tile_size); + // All root layers mask to bounds. + *root_layer.masks_to_bounds.borrow_mut() = true; + match frame_rect { Some(ref frame_rect) => { - *root_layer.masks_to_bounds.borrow_mut() = true; - let frame_rect = frame_rect.to_untyped(); *root_layer.bounds.borrow_mut() = Rect::from_untyped(&frame_rect); }