Skip to content

Conversation

@mrobinson
Copy link
Member

@mrobinson mrobinson commented Apr 11, 2018

When rendering dotted borders with small radii, put a single dot in the
corner and render the edge based on that. This fixes an issue where dots
smoosh into each other with small radii.

The resulting rendering isn't perfectly aligned for the moment, but this
can be improved as we handle more complicated situations such as
combinations of borders of different widths.


This change is Reviewable

@mrobinson mrobinson requested a review from glennw April 11, 2018 07:31
@mrobinson
Copy link
Member Author

When rendering dotted borders with small radii, put a single dot in the
corner and render the edge based on that. This fixes an issue where dots
smoosh into each other with small radii.

The resulting rendering isn't perfectly aligned for the moment, but this
can be improved as we handle more complicated situations such as
combinations of borders of different widths.
@kvark
Copy link
Member

kvark commented Apr 11, 2018

wow, quite a few failures, it seems?

@mrobinson
Copy link
Member Author

@kvark The odd thing is that the failures are all on Windows and many in tests that are not related at all to borders (for instance in SVG only tests). I'm wondering if there is something funky with that revision of Gecko. I will kick off a new job with a newer checkout.

@mrobinson
Copy link
Member Author

I had made some fixes for ANGLE validation errors and had neglected to integrate them into my Gecko branch. This try job looks a lot better: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c5c38aeb0f49b4d4db24d832f82091c4e1d08e36&selectedJob=173228446

@glennw
Copy link
Member

glennw commented Apr 13, 2018

Yup, try run looks good now.

@bors-servo r+ 🚀

@bors-servo
Copy link
Contributor

📌 Commit 76b32fd has been approved by glennw

@bors-servo
Copy link
Contributor

⌛ Testing commit 76b32fd with merge 53680df...

bors-servo pushed a commit that referenced this pull request Apr 13, 2018
Improve border dot handling for small radii

When rendering dotted borders with small radii, put a single dot in the
corner and render the edge based on that. This fixes an issue where dots
smoosh into each other with small radii.

The resulting rendering isn't perfectly aligned for the moment, but this
can be improved as we handle more complicated situations such as
combinations of borders of different widths.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2642)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: glennw
Pushing 53680df to master...

@bors-servo bors-servo merged commit 76b32fd into servo:master Apr 13, 2018
@mrobinson mrobinson deleted the border-dots branch April 13, 2018 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants