mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
auto merge of #587 : eschweic/servo/master, r=metajack
This fixes a bug that would sometimes trigger a fail! when the window was resized.
This commit is contained in:
commit
3bb47133d9
1 changed files with 4 additions and 1 deletions
|
@ -415,7 +415,10 @@ impl CompositorTask {
|
|||
|
||||
NewLayer(new_size, tile_size) => {
|
||||
*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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue