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

Call AnnotationLayer.setDimensions as part of the render/update-methods (PR 15036 follow-up) #15124

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

Rather than forcing the user to manually call setDimensions, which is also breaking any existing third-party code, it seems that we can simply let the AnnotationLayer.{render, update}-methods handle that internally.

As far as I can tell, based on testing manually in the viewer and running the browser-tests, everything still appears to work correctly with this patch.

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. Thank you.

…-methods (PR 15036 follow-up)

Rather than forcing the user to *manually* call `setDimensions`, which is also breaking any existing third-party code, it seems that we can simply let the `AnnotationLayer.{render, update}`-methods handle that internally.

As far as I can tell, based on testing manually in the viewer *and* running the browser-tests, everything still appears to work correctly with this patch.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jul 4, 2022

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/588fd498961f13c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 4, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/999e0e2dad0a278/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 4, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/999e0e2dad0a278/output.txt

Total script time: 10.22 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jul 4, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/588fd498961f13c/output.txt

Total script time: 25.99 mins

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

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

@Snuffleupagus
Copy link
Collaborator Author

/botio-windows browsertest

@pdfjsbot
Copy link

pdfjsbot commented Jul 4, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/3c6bd895bb4cad0/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 4, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/3c6bd895bb4cad0/output.txt

Total script time: 21.42 mins

  • Regression tests: Passed

@Snuffleupagus Snuffleupagus merged commit a1ac1a6 into mozilla:master Jul 4, 2022
@Snuffleupagus Snuffleupagus deleted the private-setDimensions branch July 4, 2022 12:06
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