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] Remove the setTextContentSource method in TextLayerBuilder (PR 18104 follow-up) #18170

Conversation

Snuffleupagus
Copy link
Collaborator

  • [api-minor] Remove the setTextContentSource method in TextLayerBuilder (PR 18104 follow-up)

    The setTextContentSource functionality is very old code, and was introduced years ago together with streaming of textContent.
    By moving the streamTextContent-call into the TextLayerBuilder class we collect more functionality in one place and slightly reduce the amount of code needed.

  • Introduce a helper method, in PDFPageView, for dispatching "...layerrendered" events

    Currently we repeat virtually the same, with the exception of the name, event dispatching code four times for the different viewer layers.

…lder` (PR 18104 follow-up)

The `setTextContentSource` functionality is very old code, and was introduced years ago together with streaming of textContent.
By moving the `streamTextContent`-call into the `TextLayerBuilder` class we collect more functionality in one place and slightly reduce the amount of code needed.
…rrendered" events

Currently we repeat virtually the same, with the exception of the name, event dispatching code four times for the different viewer layers.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@moz-tools-bot
Copy link
Collaborator

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/8d9dd7fad116b43/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/4ed490f72cd1bd3/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/4ed490f72cd1bd3/output.txt

Total script time: 4.31 mins

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/8d9dd7fad116b43/output.txt

Total script time: 27.75 mins

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

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

@timvandermeij
Copy link
Contributor

/botio-windows test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/5d59e35b829d95a/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/5d59e35b829d95a/output.txt

Total script time: 42.34 mins

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

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

@timvandermeij timvandermeij merged commit 027ada8 into mozilla:master May 28, 2024
7 checks passed
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the TextLayerBuilder-rm-setTextContentSource branch May 28, 2024 15:16
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