Convert the code in src/display/canvas.js to use standard classes

This gets rid of *a lot* of boilerplate that stems from our old way of simulating classes, and it actually reduces the filesize noticeably.
For e.g. `gulp mozcentral`, the *built* `pdf.js` files decreases from `318 404` to `314 722` bytes (~1 percent) with this patch.
This commit is contained in:
Jonas Jenwald 2021-04-26 21:42:11 +02:00
parent 72be684c10
commit e6601f4582

File diff suppressed because it is too large Load Diff