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 overlapping border radii handling. #2228

Merged
merged 1 commit into from Dec 15, 2017
Merged

Conversation

@glennw
Copy link
Member

glennw commented Dec 15, 2017

This ensures that the shader takes the max clipped distance
from each active clip region, which fixes this bug.

Additionally, apply the CSS spec radius clamping to clip rects.
This makes the results in the clip/clip-ellipse reftest match
Gecko, so I updated the reference image.

Fixes #2174.


This change is Reviewable

This ensures that the shader takes the max clipped distance
from each active clip region, which fixes this bug.

Additionally, apply the CSS spec radius clamping to clip rects.
This makes the results in the clip/clip-ellipse reftest match
Gecko, so I updated the reference image.

Fixes #2174.
ellipse_center_radius.zw,
aa_range);

return max(distance, current_distance);

This comment has been minimized.

@kvark

kvark Dec 15, 2017

Member

the semantics of current_distance is not clear to me. Shouldn't this be min(distance, current_distance)?

This comment has been minimized.

@glennw

glennw Dec 15, 2017

Author Member

We want to take the maximum distance, so that if any of the active clip regions results in clipping the primitive out, it removes it.

@glennw
Copy link
Member Author

glennw commented Dec 15, 2017

Try looks green for this PR.

@kvark
Copy link
Member

kvark commented Dec 15, 2017

thanks for explanation!
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Dec 15, 2017

📌 Commit e3d7353 has been approved by kvark

bors-servo added a commit that referenced this pull request Dec 15, 2017
Fix overlapping border radii handling.

This ensures that the shader takes the max clipped distance
from each active clip region, which fixes this bug.

Additionally, apply the CSS spec radius clamping to clip rects.
This makes the results in the clip/clip-ellipse reftest match
Gecko, so I updated the reference image.

Fixes #2174.

<!-- 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/2228)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Dec 15, 2017

Testing commit e3d7353 with merge c16b37d...

@bors-servo
Copy link
Contributor

bors-servo commented Dec 15, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: kvark
Pushing c16b37d to master...

@bors-servo bors-servo merged commit e3d7353 into servo:master Dec 15, 2017
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@glennw glennw deleted the glennw:overlap-border branch Jan 18, 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.

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