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

Improve the TextLayerRenderTask implementation #18089

Merged
merged 1 commit into from
May 14, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

 - Change all possible semi-private methods into properly private ones. Note that this code is old enough to predate standard classes.

 - Move the `appendText` helper function into `TextLayerRenderTask`, as a private method, to avoid having to manually pass in the scope.

 - Simplify `#layoutText` by directly passing in all necessary data. This is possible after the changes PR 18052.
@Snuffleupagus
Copy link
Collaborator Author

Please note: Ideally I'd like to re-factor this code even further, making it a bit more similiar to the AnnotationLayer, however those changes would need to be tagged [api-major] unfortunately.

@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/2e4e5deca1f1360/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/2e4e5deca1f1360/output.txt

Total script time: 27.40 mins

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

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

Total script time: 40.03 mins

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

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

@timvandermeij timvandermeij merged commit c6d7ae2 into mozilla:master May 14, 2024
9 checks passed
@timvandermeij
Copy link
Contributor

Looks good to me; thanks!

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