Skip to content
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

Don't clear the canvas until re-rendering is finished when the scale or rotation is changed (issue 6467) #6468

Merged
merged 2 commits into from
Sep 29, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

This regressed in PR #4920.

The main motivation for PR #4920 was to quickly get rid of old canvases when pages are evicted from the PDFPageViewBuffer cache. However it inadvertently broke the use-case where the canvas is used as a preview, on scale or rotation changes, until the re-rendering is finished.

Fixes #6467.

r? @brendandahl

Please note: The second commit is not related to the issue, but it fixes a couple of stylistic issues that I saw while working on this code; easier reviewing with: 424f62e?w=1.

…le` or `rotation` is changed (issue 6467)

*This regressed in PR 4920.*

The main motivation for PR 4920 was to quickly get rid of old canvases when pages are evicted from the `PDFPageViewBuffer` cache. However it inadvertently broke the use-case where the `canvas` is used as a preview, on scale or rotation changes, until the re-rendering is finished.

Fixes 6467.
brendandahl added a commit that referenced this pull request Sep 29, 2015
Don't clear the `canvas` until re-rendering is finished when the `scale` or `rotation` is changed (issue 6467)
@brendandahl brendandahl merged commit 7cdc6f3 into mozilla:master Sep 29, 2015
@brendandahl
Copy link
Contributor

Thanks for the quick fix.

@Snuffleupagus Snuffleupagus deleted the issue-6467 branch September 29, 2015 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSS Zoom Regression
2 participants