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

Improve border dot handling for small radii #2642

Merged
merged 1 commit into from Apr 13, 2018

Conversation

@mrobinson
Copy link
Member

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 Apr 11, 2018
@mrobinson
Copy link
Member Author

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.
@mrobinson mrobinson force-pushed the mrobinson:border-dots branch from 8a7ba19 to 76b32fd Apr 11, 2018
@kvark
Copy link
Member

kvark commented Apr 11, 2018

wow, quite a few failures, it seems?

@mrobinson
Copy link
Member Author

mrobinson commented Apr 12, 2018

@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

mrobinson commented Apr 12, 2018

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
glennw approved these changes Apr 13, 2018
@glennw
Copy link
Member

glennw commented Apr 13, 2018

Yup, try run looks good now.

@bors-servo r+ 🚀

@bors-servo
Copy link
Contributor

bors-servo commented Apr 13, 2018

📌 Commit 76b32fd has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Apr 13, 2018

Testing commit 76b32fd with merge 53680df...

bors-servo added 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

bors-servo commented Apr 13, 2018

☀️ 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
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@mrobinson mrobinson deleted the mrobinson:border-dots branch Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.