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

Fix some issues with lineWidth < 1 after transform (bug 1753075, bug 1743245, bug 1710019) #14536

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

calixteman
Copy link
Contributor

@calixteman calixteman commented Feb 5, 2022

@marco-c
Copy link
Contributor

marco-c commented Feb 5, 2022

Is this fixing also the bugs linked to bug 1753075 (1743245 and 1657838) and the issues linked to #13211 (#14521)?
If yes, we might want to add the PDFs from those bugs/issues to the reftests too.

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.

Hopefully @brendandahl can review this, since I don't feel that I know all of this code well enough to do so properly myself.

@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/8b2e26e6d5e2944/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Linux m4)


Failed

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

Total script time: 23.29 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Windows)


Failed

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

Total script time: 25.19 mins

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

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

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Feb 7, 2022

Besides the regressions related to text-stroking, there also seem to be some regressions related to dashed lines in a number of test-cases (e.g. tracemonkey-eq and issue1169 regressed a bit).

@calixteman
Copy link
Contributor Author

Yeah I noticed the ones about the dashed lines but I don't see them locally.

@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/406cc048f6e7986/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/28a131d7086d818/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/406cc048f6e7986/output.txt

Total script time: 23.36 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented Feb 7, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/28a131d7086d818/output.txt

Total script time: 24.78 mins

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

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

@Snuffleupagus
Copy link
Collaborator

Yeah I noticed the ones about the dashed lines but I don't see them locally.

I've just tested this patch locally on Windows, using a regular screen (no hiDPI), and I can reproduce this directly in the viewer at various zoom levels.

@calixteman calixteman force-pushed the thin_line branch 2 times, most recently from e806833 to 13e0422 Compare February 14, 2022 16:52
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/720a4abd1c02227/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/23a4ceccf87846f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/23a4ceccf87846f/output.txt

Total script time: 25.18 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/720a4abd1c02227/output.txt

Total script time: 25.56 mins

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

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

@marco-c marco-c changed the title Fix some issues with lineWidth < 1 after transform (bug 1753075, bug 1743245) Fix some issues with lineWidth < 1 after transform (bug 1753075, bug 1743245, bug 1710019) Feb 24, 2022
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/92225866e595c28/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 23.91 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 14
  different ref/snapshot: 762

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/92225866e595c28/output.txt

Total script time: 24.76 mins

  • Font tests: Passed
  • Unit tests: FAILED
  • Integration Tests: FAILED
  • Regression tests: FAILED
  errors: 7
  different ref/snapshot: 98

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

@calixteman
Copy link
Contributor Author

/botio-linux test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/76821138ab7fa2c/output.txt

@calixteman
Copy link
Contributor Author

/botio-windows test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/616fdbfd2bb9add/output.txt

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Feb 25, 2022

Note that a bunch of tests failed with .... | render : TypeError: this.rescaleAndStrokeNoSave is not a function, since that method doesn't exist in the latest version of the patch :-P

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/76821138ab7fa2c/output.txt

Total script time: 23.34 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/616fdbfd2bb9add/output.txt

Total script time: 24.88 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 7
  different ref/snapshot: 100

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

…743245, bug 1710019)

 - it aims to fix:
   - https://bugzilla.mozilla.org/show_bug.cgi?id=1753075;
   - https://bugzilla.mozilla.org/show_bug.cgi?id=1743245;
   - https://bugzilla.mozilla.org/show_bug.cgi?id=1710019;
   - issue mozilla#13211;
   - issue mozilla#14521.
 - previously we were trying to adjust lineWidth to have something correct after the current transform is applied but this approach was not correct because finally the pixel is rescaled with the same factors in both directions.
  And sometimes those factors must be different (see bug 1753075).
 - So the idea of this patch is to apply a scale matrix to the current transform just before setting lineWidth and stroking. This scale matrix is computed in order to ensure that after transform, a pixel will have its two thickness greater than 1.
@calixteman
Copy link
Contributor Author

@Snuffleupagus merci
/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/567ff23c77bbbf0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 24.27 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/567ff23c77bbbf0/output.txt

Total script time: 24.83 mins

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

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

@calixteman calixteman requested a review from brendandahl March 2, 2022 16:45
@brendandahl brendandahl merged commit 85ff7b1 into mozilla:master Mar 2, 2022
@brendandahl
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Mar 2, 2022

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @brendandahl received. Current queue size: 0

Live output at: http://54.241.84.105:8877/733e2bdb15418cd/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 2, 2022

From: Bot.io (Windows)


Received

Command cmd_makeref from @brendandahl received. Current queue size: 0

Live output at: http://54.193.163.58:8877/18ab1d9fd068547/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 2, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/18ab1d9fd068547/output.txt

Total script time: 20.93 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Mar 2, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/733e2bdb15418cd/output.txt

Total script time: 21.67 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Closed
5 participants