Skip to content

Change how (most) fields are initialized in the CanvasExtraState class #19771

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

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

  • Remove "unnecessary" inline function names in the src/display/canvas.js file

    This is ever so slightly shorter, which cannot hurt.

  • Change how (most) fields are initialized in the CanvasExtraState class

    The majority of the class fields don't depend on any parameters, hence we can re-factor and shorten by this using modern JavaScript features.

….js` file

This is ever so slightly shorter, which cannot hurt.
The majority of the class fields don't depend on any parameters, hence we can re-factor and shorten by this using modern JavaScript features.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@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/263dfdc135a23c5/output.txt

@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/75f383f2b33c637/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/263dfdc135a23c5/output.txt

Total script time: 3.33 mins

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/75f383f2b33c637/output.txt

Total script time: 29.37 mins

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

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.

@Snuffleupagus Snuffleupagus merged commit 9217d25 into mozilla:master Apr 5, 2025
9 checks passed
@Snuffleupagus Snuffleupagus deleted the canvas-shorter-CanvasExtraState branch April 5, 2025 16:46
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