mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Change PaintContext rects to TypedRects #7023
Needs update to_nearest_pixel method in app_unit module. Argument of to_nearest_pixel should be: ScaleFactor<PagePx, ScreenPx, f32>
This commit is contained in:
parent
488459f801
commit
2a7927d074
3 changed files with 46 additions and 43 deletions
|
@ -681,8 +681,8 @@ impl WorkerThread {
|
|||
let mut paint_context = PaintContext {
|
||||
draw_target: draw_target.clone(),
|
||||
font_context: &mut self.font_context,
|
||||
page_rect: tile.page_rect,
|
||||
screen_rect: tile.screen_rect,
|
||||
page_rect: Rect::from_untyped(&tile.page_rect),
|
||||
screen_rect: Rect::from_untyped(&tile.screen_rect),
|
||||
clip_rect: None,
|
||||
transient_clip: None,
|
||||
layer_kind: layer_kind,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue