diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-07-27 18:54:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-27 18:54:32 -0500 |
commit | abdf01ed058478ea120137a925a09d918c47cd02 (patch) | |
tree | d3b9a5284e2a7a64a0f7e5483316d165f1018ba6 /components/gfx/paint_thread.rs | |
parent | 944d371b8f0e72f6aa5465be38c0c8daeab66127 (diff) | |
parent | f65864d04d88a857571aa6d359c6fd75985e3672 (diff) | |
download | servo-abdf01ed058478ea120137a925a09d918c47cd02.tar.gz servo-abdf01ed058478ea120137a925a09d918c47cd02.zip |
Auto merge of #11850 - splav:box-shadow#11662, r=glennw
Fix PaintContext page_rect due to display list origin
Fix PaintContext page_rect due to non zero display list origin.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11662 (github issue number if applicable).
<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11850)
<!-- Reviewable:end -->
Diffstat (limited to 'components/gfx/paint_thread.rs')
-rw-r--r-- | components/gfx/paint_thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs index 27a4231f252..a06ef7ee7af 100644 --- a/components/gfx/paint_thread.rs +++ b/components/gfx/paint_thread.rs @@ -684,7 +684,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, |