Skip to content

Remove a couple of closures in the src/display/api.js file #13813

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

Merged
merged 3 commits into from
Jul 30, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Jul 28, 2021

Please refer to the individual commit messages for additional details.

Also, note that this patch-series still leaves the PDFWorkerClosure intact. The reason is partly that the code is less straightforward to re-factor in this way, and more importantly that PDFWorker is exposed in the public API and I really didn't want to accidentally make any internal state visible to the outside. This could possibly be improved upon if/when we've started using static class fields (currently blocked on ESLint support).

This patch utilizes the same approach as used in lots of other parts of the code-base, which thus *slightly* reduces the size of this code.

By removing some of the (current) indirection, we can also simplify the JSDocs a little bit. Looking at the `gulp jsdoc` output, this actually seem to *improve* the documentation for this class.
This patch utilizes the same approach as used in lots of other parts of the code-base, which thus *slightly* reduces the size of this code.
@Snuffleupagus Snuffleupagus marked this pull request as ready for review July 30, 2021 09:41
@mozilla mozilla deleted a comment from pdfjsbot Jul 30, 2021
@mozilla mozilla deleted a comment from pdfjsbot Jul 30, 2021
@mozilla mozilla deleted a comment from pdfjsbot Jul 30, 2021
@mozilla mozilla deleted a comment from pdfjsbot Jul 30, 2021
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/d7a406e0711f6ae/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://3.101.106.178:8877/997b4d069de1994/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/d7a406e0711f6ae/output.txt

Total script time: 33.45 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 9
  different first/second rendering: 1

Image differences available at: http://54.67.70.0:8877/d7a406e0711f6ae/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/997b4d069de1994/output.txt

Total script time: 39.14 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 7
  different first/second rendering: 1

Image differences available at: http://3.101.106.178:8877/997b4d069de1994/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit 99b14a9 into mozilla:master Jul 30, 2021
@timvandermeij
Copy link
Contributor

Thanks!

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.

3 participants