New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canvas: implement context state save/restore. #5731
Conversation
Critic review: https://critic.hoppipolla.co.uk/r/4710 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
Reviewed files:
components/script/dom/canvasrenderingcontext2d.rs, line 347 [r2] (raw file): components/script/dom/canvasrenderingcontext2d.rs, line 387 [r2] (raw file): components/script/dom/canvasrenderingcontext2d.rs, line 885 [r2] (raw file): components/script/dom/canvasrenderingcontext2d.rs, line 901 [r2] (raw file): components/script/dom/canvasrenderingcontext2d.rs, line 919 [r2] (raw file): components/script/dom/canvasrenderingcontext2d.rs, line 937 [r2] (raw file): Comments from the review on Reviewable.io |
components/script/dom/canvasrenderingcontext2d.rs, line 347 [r2] (raw file): components/script/dom/canvasrenderingcontext2d.rs, line 885 [r2] (raw file): Comments from the review on Reviewable.io |
Reviewed files:
components/script/dom/canvasrenderingcontext2d.rs, line 347 [r2] (raw file): Comments from the review on Reviewable.io |
components/script/dom/canvasrenderingcontext2d.rs, line 347 [r2] (raw file): Comments from the review on Reviewable.io |
Ok! Go ahead and squash, and use the appropriate update-cargo command to grab the rust-azure changes. |
ff42331
to
5876217
Compare
Ok, squashed this and servo/rust-azure#153 too, I'll update the lock files as soon as it gets merged. |
5876217
to
5b8416a
Compare
Updated & rebased. |
@bors-servo: r+ |
📌 Commit 5b8416a has been approved by |
⌛ Testing commit 5b8416a with merge 9c7c289... |
This patch enables the use of `save()` and `restore()` for the canvas context, which is used by *a lot* of sites and scripts. Depends on servo/rust-azure#153. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5731) <!-- Reviewable:end -->
This patch enables the use of
save()
andrestore()
for the canvas context, which is used by a lot of sites and scripts.Depends on servo/rust-azure#153.