Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDraft. Change PaintContext rects to TypedRects #7023 #7696
Conversation
|
r? @mbrubeck |
|
|
|
Thanks for the patch! Here are a few comments... -S-awaiting-review +S-needs-code-changes Reviewed 3 of 3 files at r1. components/gfx/display_list/mod.rs, line 486 [r1] (raw file): components/gfx/paint_context.rs, line 95 [r1] (raw file): components/gfx/paint_context.rs, line 244 [r1] (raw file): Also, I'm surprised that we are combining these different coordinates like this without scaling them. This may be a bug in the existing code. Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. components/gfx/paint_context.rs, line 95 [r1] (raw file): components/gfx/paint_context.rs, line 244 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. components/gfx/paint_context.rs, line 95 [r1] (raw file): Yes, if you change this then the Comments from the review on Reviewable.io |
|
Oops, I didn't notice that my earlier attempt to publish euclid 0.2.1 failed. Now it has been published successfully, and you can run |
|
OK, thanks :-) |
55a3c0c
to
82623dc
|
|
|
Oops, this was rebased but also had build errors according to the travis log:
|
|
Yes, I know that there are build errors, it's because my changes need update in |
|
It sounds like perhaps we should define PagePx and ScreenPx in app_unit instead. |
|
If you'd like to land the work you've done so far, you could split the changes that depend on app_unit into a separate commit to be merged later. |
|
OK, I'll push another version. |
82623dc
to
bd61308
|
|
Needs update to_nearest_pixel method in app_unit module. Argument of to_nearest_pixel should be: ScaleFactor<PagePx, ScreenPx, f32>
bd61308
to
2a7927d
|
Rebased, @mbrubeck what do you think? Could you do a review? |
|
Reviewed 3 of 3 files at r2, 2 of 2 files at r3. Comments from the review on Reviewable.io |
|
@bors-servo r+ Thanks! |
|
|
Draft. Change PaintContext rects to TypedRects #7023 I created draft. I'm not sure if we need any units conversion in PaintContext. There is also strange 'clear' method, we use PagePx origin and ScreenPx size is it OK? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7696) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Draft. Change PaintContext rects to TypedRects #7023 I created draft. I'm not sure if we need any units conversion in PaintContext. There is also strange 'clear' method, we use PagePx origin and ScreenPx size is it OK? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7696) <!-- Reviewable:end -->
|
|
mskrzypkows commentedSep 21, 2015
I created draft. I'm not sure if we need any units conversion in PaintContext. There is also strange 'clear' method, we use PagePx origin and ScreenPx size is it OK?