Skip to content

Commit

Permalink
Fix PaintContext page_rect due to display list origin
Browse files Browse the repository at this point in the history
  • Loading branch information
splav committed Jul 13, 2016
1 parent 496e45b commit b1ad7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/gfx/paint_thread.rs
Expand Up @@ -685,7 +685,7 @@ impl WorkerThread {
let mut paint_context = PaintContext {
draw_target: draw_target.clone(),
font_context: &mut self.font_context,
page_rect: Rect::from_untyped(&tile.page_rect),
page_rect: Rect::from_untyped(&tile.page_rect.translate(&paint_layer.display_list_origin)),
screen_rect: Rect::from_untyped(&tile.screen_rect),
clip_rect: None,
transient_clip: None,
Expand Down

0 comments on commit b1ad7ec

Please sign in to comment.