mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Don't let base layers override root layer size
Base layers (the background layer of each frame) shouldn't override the size of their root layers. This allows base layers to scroll inside root layer frames. This does mean that when determining the maximum scroll position, we need to look at the size of scrolling root children though.
This commit is contained in:
parent
e01c5cd863
commit
f346a215f3
3 changed files with 17 additions and 4 deletions
|
@ -500,7 +500,7 @@ impl IOCompositor {
|
|||
let need_new_root_layer = !self.update_layer_if_exists(layer_properties);
|
||||
if need_new_root_layer {
|
||||
let root_layer = self.find_pipeline_root_layer(layer_properties.pipeline_id);
|
||||
CompositorData::update_layer(root_layer.clone(), layer_properties);
|
||||
CompositorData::update_layer_except_size(root_layer.clone(), layer_properties);
|
||||
|
||||
let root_layer_pipeline = root_layer.extra_data.borrow().pipeline.clone();
|
||||
let first_child = CompositorData::new_layer(root_layer_pipeline.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue