Fix PaintContext page_rect due to display list origin

This commit is contained in:
Alexandrov Sergey 2016-06-24 13:59:13 +03:00 committed by Sergey Alexandrov
parent 496e45b190
commit b1ad7ecc38

View file

@ -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,