engine icon indicating copy to clipboard operation
engine copied to clipboard

Fix HTML renderer does not render border

Open bleroux opened this issue 2 years ago • 3 comments

Description

This PRs fixes an issue where the HTML renderer was not able to draw straight lines when stroke width is zero (For more information see the demo here: https://github.com/flutter/flutter/issues/46339#issuecomment-1188719650). The implementation choice is to draw a filled rectangle with a 1 width or a 1 height. This choice is done for optimization purposes (compared to relying on drawing the line on an Web canvas).

Related Issue

Fixes https://github.com/flutter/flutter/issues/46339

Tests

Adds 1 test.

bleroux avatar Jul 21 '22 11:07 bleroux

Gold has detected about 1 new digest(s) on patchset 1. View them at https://flutter-engine-gold.skia.org/cl/github/34812

skia-gold avatar Jul 21 '22 11:07 skia-gold

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #34812 at sha af46a445b813344c428be6922c6fb0230d2c2fe0

flutter-dashboard[bot] avatar Jul 21 '22 12:07 flutter-dashboard[bot]

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

flutter-dashboard[bot] avatar Aug 10 '22 12:08 flutter-dashboard[bot]

Gold has detected about 1 new digest(s) on patchset 1. View them at https://flutter-engine-gold.skia.org/cl/github/34812

skia-gold avatar Sep 14 '22 18:09 skia-gold

Golden file changes are available for triage from new commit, Click here to view.

Changes reported for pull request #34812 at sha d3e0b0ccbe20167db2df4c0b24df3dd2459c6f04

flutter-dashboard[bot] avatar Sep 14 '22 18:09 flutter-dashboard[bot]

@yjbanov It's the first time I filed a PR with a golden file change and I don't have the access rights to validate the golden file. Can you do it or explain me what is the procedure?

bleroux avatar Sep 14 '22 20:09 bleroux

Yeah, I did it, but it's having trouble registering it. I just triaged it again. 🤞 this is pass now.

yjbanov avatar Sep 15 '22 16:09 yjbanov