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

Avoid to compute the client rect of the viewer #15830

Merged
merged 1 commit into from
Dec 17, 2022

Conversation

calixteman
Copy link
Contributor

@calixteman calixteman commented Dec 14, 2022

The container position and dimensions should be almost constant, hence
it's pretty useless to query them on each rescale.
Finally it avoids to trigger some reflows.

@calixteman
Copy link
Contributor Author

calixteman commented Dec 14, 2022

@Snuffleupagus if I overlooked something with the removal of the height stuff, please tell me but in looking at the devtools my impress was that the height is finally always 100% of its parent.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

Sorry, but these changes generally don't seem desirable/correct as far as I'm concerned.

web/app.js Show resolved Hide resolved
web/pdf_viewer.css Outdated Show resolved Hide resolved
web/pdf_viewer.css Outdated Show resolved Hide resolved
@calixteman calixteman marked this pull request as draft December 14, 2022 18:43
@calixteman calixteman force-pushed the dont_compute_rect branch 2 times, most recently from 8760bf6 to 7c8b777 Compare December 16, 2022 15:29
@calixteman calixteman marked this pull request as ready for review December 16, 2022 15:30
@Snuffleupagus
Copy link
Collaborator

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/43d4cd2cef608f5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/43d4cd2cef608f5/output.txt

Total script time: 1.25 mins

Published

web/pdf_viewer.js Show resolved Hide resolved
web/pdf_viewer.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

r=me, with two small suggestions; this is looking much nicer now!

web/pdf_viewer.js Outdated Show resolved Hide resolved
web/pdf_viewer.js Outdated Show resolved Hide resolved
web/pdf_viewer.js Outdated Show resolved Hide resolved
The container position and dimensions should be almost constant, hence
it's pretty useless to query them on each rescale.
Finally it avoids to trigger some reflows.
@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/14cad6a8fe66da2/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/14cad6a8fe66da2/output.txt

Total script time: 4.71 mins

  • Integration Tests: FAILED

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 11.35 mins

  • Integration Tests: FAILED

@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/6da2b540c78e5c2/output.txt

@calixteman
Copy link
Contributor Author

The failures are likely due to #15845.

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 4.81 mins

  • Integration Tests: FAILED

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/6da2b540c78e5c2/output.txt

Total script time: 5.18 mins

  • Integration Tests: FAILED

@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 1

Live output at: http://54.193.163.58:8877/98117f53a2a3429/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 4.22 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/98117f53a2a3429/output.txt

Total script time: 9.83 mins

  • Integration Tests: FAILED

@calixteman calixteman merged commit 1ab711e into mozilla:master Dec 17, 2022
@calixteman calixteman deleted the dont_compute_rect branch December 17, 2022 11:34
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