mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Fix crash on window resize
This commit is contained in:
parent
0c4119b496
commit
df08795325
1 changed files with 4 additions and 1 deletions
|
@ -415,7 +415,10 @@ impl CompositorTask {
|
||||||
|
|
||||||
NewLayer(new_size, tile_size) => {
|
NewLayer(new_size, tile_size) => {
|
||||||
*page_size = Size2D(new_size.width as f32, new_size.height as f32);
|
*page_size = Size2D(new_size.width as f32, new_size.height as f32);
|
||||||
*quadtree = Some(Quadtree::new(0, 0, new_size.width, new_size.height, tile_size));
|
*quadtree = Some(Quadtree::new(0, 0,
|
||||||
|
new_size.width.max(&(window_size.width as uint)),
|
||||||
|
new_size.height.max(&(window_size.height as uint)),
|
||||||
|
tile_size));
|
||||||
ask_for_tiles();
|
ask_for_tiles();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue