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

[api-minor] Add a new PageViewport-getter to access the original, un-scaled, viewport dimensions #15797

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

While reviewing recent patches, I couldn't help but noticing that we now have a lot of call-sites that manually access the PageViewport.viewBox-property.
Rather than repeating that verbatim all over the code-base, this patch adds a lazily computed and cached getter for this data instead.

@Snuffleupagus Snuffleupagus marked this pull request as draft December 9, 2022 19:58
…n-scaled, viewport dimensions

While reviewing recent patches, I couldn't help but noticing that we now have a lot of call-sites that manually access the `PageViewport.viewBox`-property.
Rather than repeating that verbatim all over the code-base, this patch adds a lazily computed and cached getter for this data instead.
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@mozilla mozilla deleted a comment from pdfjsbot Dec 11, 2022
@Snuffleupagus Snuffleupagus marked this pull request as ready for review December 11, 2022 18:51
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/cc952d22ccaa372/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 25.49 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/cc952d22ccaa372/output.txt

Total script time: 32.46 mins

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

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

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Snuffleupagus Snuffleupagus merged commit 0fdac9b into mozilla:master Dec 12, 2022
@Snuffleupagus Snuffleupagus deleted the PageViewport-rawDims branch December 12, 2022 10: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.

3 participants