Skip to content

[Annotation] Use the clip-path property when an annotation has some quad points #16492

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
merged 1 commit into from
Jul 20, 2023

Conversation

calixteman
Copy link
Contributor

This way it'll avoid to split a div in multiple divs having the same id (which is supposed to be unique).

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.

Have you successfully tested this locally, since according to the inline comment I'd really expect some breakage caused by these changes?

@calixteman calixteman force-pushed the clip_path branch 2 times, most recently from 49b5145 to 893608a Compare May 30, 2023 12:53
@calixteman calixteman requested a review from Snuffleupagus June 9, 2023 17:53
@Snuffleupagus
Copy link
Collaborator

Please make sure that this passes all tests before I attempt to review this.

@calixteman
Copy link
Contributor Author

/botio test

@moz-tools-bot
Copy link
Collaborator

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/5e0e508d378bef2/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/46a092fa4e835df/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/5e0e508d378bef2/output.txt

Total script time: 11.79 mins

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

Image differences available at: http://54.241.84.105:8877/5e0e508d378bef2/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/46a092fa4e835df/output.txt

Total script time: 20.68 mins

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

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

@calixteman
Copy link
Contributor Author

/botio test

@moz-tools-bot
Copy link
Collaborator

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/1dfeaad664d07bc/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/1dfeaad664d07bc/output.txt

Total script time: 0.19 mins

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

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

Total script time: 0.48 mins

@calixteman
Copy link
Contributor Author

/botio test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/7d6ff860c859e29/output.txt

@moz-tools-bot
Copy link
Collaborator

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/69b657972b649e5/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/69b657972b649e5/output.txt

Total script time: 24.50 mins

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

Image differences available at: http://54.241.84.105:8877/69b657972b649e5/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/7d6ff860c859e29/output.txt

Total script time: 33.68 mins

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

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

@calixteman calixteman marked this pull request as draft June 15, 2023 09:55
@calixteman
Copy link
Contributor Author

/botio test

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

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/9e5f52d134653f7/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/9e5f52d134653f7/output.txt

Total script time: 25.46 mins

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

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

@moz-tools-bot
Copy link
Collaborator

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

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

Total script time: 24.78 mins

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

Image differences available at: http://54.241.84.105:8877/f2ad1288eba9121/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/65b64ed3fad8a8d/output.txt

Total script time: 39.07 mins

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

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

@calixteman
Copy link
Contributor Author

I had to add a small delay to make it working locally (it was working previously locally with no delay).
/botio test

@moz-tools-bot
Copy link
Collaborator

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/89a508f47c13d55/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/89a508f47c13d55/output.txt

Total script time: 25.31 mins

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

Image differences available at: http://54.241.84.105:8877/89a508f47c13d55/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/d3dbfb7c911a23b/output.txt

Total script time: 38.81 mins

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

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

…uad points

This way it'll avoid to split a div in multiple divs having the same id (which
is supposed to be unique).
@Snuffleupagus
Copy link
Collaborator

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

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

Total script time: 1.41 mins

Published

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Jul 20, 2023

For the quadpoints.pdf document, looking both at the test-results and comparing the rendering in the viewer with/without this patch, it does feel that the linkAnnotation border is now slightly thinner. Can this be improved somehow, or is it perhaps some kind of rounding issue that we can't control?

@calixteman
Copy link
Contributor Author

For the quadpoints.pdf document, looking both at the test-results and comparing the rendering in the viewer with/without this patch, it does feel that the linkAnnotation border is now slightly thinner. Can this be improved somehow, or is it perhaps some kind of rounding issue that we can't control?

It seems to depend on the zoom factor and with my screen (and my eyes), I've the impress that it's sometimes slightly thinner without the patch and sometimes slightly thinner with... it depends. So yes, you're likely right, it's probably due to rounding issues.
Maybe we can mitigate this in adding 0.5 to the border size.
It seems to me that having a border on a link is a rare case, so I wouldn't worry that much about that.

@Snuffleupagus
Copy link
Collaborator

So yes, you're likely right, it's probably due to rounding issues.
Maybe we can mitigate this in adding 0.5 to the border size.

Let's just leave this as-is for now then, but keep our eyes out for any potential regressions.

It seems to me that having a border on a link is a rare case, so I wouldn't worry that much about that.

I'd say that it's somewhat common actually, since many LaTeX-generated PDF documents use linkAnnotation borders. However it's not particularly common for those links to be split e.g. across lines, which means that the border-related changes in this patch won't affect things in the "normal" case.

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 a final round of testing; thank you!

@calixteman
Copy link
Contributor Author

/botio test

@moz-tools-bot
Copy link
Collaborator

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/6f101ba111e1d1d/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/6f101ba111e1d1d/output.txt

Total script time: 25.50 mins

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

Image differences available at: http://54.241.84.105:8877/6f101ba111e1d1d/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/6cc8eb7fcf2468f/output.txt

Total script time: 35.55 mins

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

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

@calixteman calixteman merged commit 0702663 into mozilla:master Jul 20, 2023
@calixteman
Copy link
Contributor Author

/botio makeref

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/2c0a049dcfa3838/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

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

Total script time: 20.81 mins

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/2c0a049dcfa3838/output.txt

Total script time: 25.79 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants