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

Remove unnecessary closure in src/display/text_layer.js, and use standard classes #13339

Merged
merged 1 commit into from May 5, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

With modern JavaScript modules, where you explicitly list the properties that should be exported, it's no longer necessary to wrap all of the code in a closure.[1]

This patch also tries to clean-up/improve a couple of the existing JSDoc-comments.


[1] This reduces the size, even of the built pdf.js file, since there's now a lot less unnecessary whitespace.

…andard classes

With modern JavaScript modules, where you explicitly list the properties that should be exported, it's no longer necessary to wrap all of the code in a closure.[1]

This patch also tries to clean-up/improve a couple of the existing JSDoc-comments.

---
[1] This reduces the size, even of the *built* `pdf.js` file, since there's now a lot less unnecessary whitespace.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 5, 2021

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/89c2d99cf37643f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 5, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/5c4a77b8c603349/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 5, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/89c2d99cf37643f/output.txt

Total script time: 25.94 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED

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

@pdfjsbot
Copy link

pdfjsbot commented May 5, 2021

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/5c4a77b8c603349/output.txt

Total script time: 29.66 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED

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

@timvandermeij timvandermeij merged commit 2d24962 into mozilla:master May 5, 2021
@timvandermeij
Copy link
Contributor

Thank you for improving this code!

@Snuffleupagus Snuffleupagus deleted the textLayer-rm-closure branch May 5, 2021 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants