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

Fix a xfaFaxtory typo in the shadowing in the PDFDocument.xfaFactory getter, and some other clean-up #14152

Merged
merged 4 commits into from
Oct 16, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

Please refer to the individual commit messages for additional details.

…ry` getter

With this typo the shadowing doesn't actually work, which causes these checks to be unnecessarily repeated. In this particular case it didn't have a significant performance impact, however we should definately fix this nonetheless.
In these cases there's no good reason, in my opinion, to duplicate the `shadow`-lines since that unnecessarily increases the risk of simple typos (see the previous patch).
Also (slightly) simplifies a couple of small getters/methods related to the `XFAFactory`-instance.
…for consistency

All other similar getters are called `numPages` throughout the code-base, and improved consistency should always be a good thing.
@timvandermeij
Copy link
Contributor

/botio xfatest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_xfatest from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/d9dbb4fdd40cb60/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_xfatest from @timvandermeij received. Current queue size: 1

Live output at: http://54.193.163.58:8877/144faa16643f60a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/d9dbb4fdd40cb60/output.txt

Total script time: 9.44 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 2

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/144faa16643f60a/output.txt

Total script time: 14.21 mins

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

Image differences available at: http://54.193.163.58:8877/144faa16643f60a/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit 52fce0d into mozilla:master Oct 16, 2021
@timvandermeij
Copy link
Contributor

Nice find; thank you for fixing this!

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