mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix display list optimization on retina displays. Fixes #7018.
This commit is contained in:
parent
f570da28c2
commit
6333961844
1 changed files with 3 additions and 1 deletions
|
@ -438,7 +438,9 @@ impl StackingContext {
|
|||
inverse_transform.m21, inverse_transform.m22,
|
||||
inverse_transform.m41, inverse_transform.m42);
|
||||
|
||||
let tile_rect = Rect::new(Point2D::zero(), paint_context.page_rect.size);
|
||||
let tile_size = Size2D::new(paint_context.screen_rect.size.width as f32,
|
||||
paint_context.screen_rect.size.height as f32);
|
||||
let tile_rect = Rect::new(Point2D::zero(), tile_size);
|
||||
let tile_rect = inverse_transform_2d.transform_rect(&tile_rect);
|
||||
|
||||
// Optimize the display list to throw out out-of-bounds display items and so forth.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue