Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix artifacts on box shadows that don't use nine-patch stretching. #2523
Conversation
|
There's two new failures here:
Visually, I can't see any differences between the two images. I'm tempted to get this merged, since it fixes an obvious artifact (#2467). But we can wait for an opinion from @staktrace - the PR queue is backed up, so I could investigate this further tomorrow if you'd prefer. r? @kvark |
Darkspirit
commented
Mar 15, 2018
•
|
mozregression --repo try --launch defcfa9b14cb578332570a45e4d4653a021695c6 --pref gfx.webrender.all:true I just opened some new tabs, wikipedia, reloaded, close some tabs. Then all type of text disappeared in the whole window. Edit: on about:support, only the text on the righthand side of the table is invisible. "Nightly" in the locationbar is visible, about:support not. Tabs do not have text. No critical log, no crash, WebRender is still active. Edit 2: If I open 2 newtab pages, both initially have text. If I close one, the other one lost its text. |
Darkspirit
commented
Mar 15, 2018
|
I think we can probably open that as a separate issue from #2467. |
|
I think the reftest differences in #2523 (comment) are acceptable, so feel free to merge. |
| case MODE_STRETCH: { | ||
| uv = clamp(vUv.xy, vec2(0.0), vEdge.xy); | ||
| uv += max(vec2(0.0), vUv.xy - vEdge.zw); | ||
| uv = mix(vUvBounds_NoClamp.xy, vUvBounds_NoClamp.zw, uv); |
This comment has been minimized.
This comment has been minimized.
kvark
Mar 15, 2018
Member
nit: could go straight to vUvBounds and move the follow up clamping into the MODE_SIMPLE case
This comment has been minimized.
This comment has been minimized.
glennw
Mar 15, 2018
Author
Member
It's not quite clear to me what you mean here, since that statement is a mix. Could you expand on the above?
This comment has been minimized.
This comment has been minimized.
| let mut stretch_mode = BoxShadowStretchMode::Stretch; | ||
| if shadow_rect.size.width < minimal_shadow_rect.size.width || | ||
| shadow_rect.size.height < minimal_shadow_rect.size.height { | ||
| minimal_shadow_rect.size.width = shadow_rect.size.width; |
This comment has been minimized.
This comment has been minimized.
|
Fixed the second comment. Could you expand on the first comment, I'm not quite sure what you mean? |
|
Oh wait, I see what you're saying - will fix now. |
|
please r=me once CI is happy |
|
I think the CI issue is remnants of the servo-tidy issue, hopefully it'll pass now. @bors-servo r=kvark |
|
|
Fix artifacts on box shadows that don't use nine-patch stretching. Fixes #2467. <!-- 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/2523) <!-- Reviewable:end -->
|
|

glennw commentedMar 15, 2018
•
edited by larsbergstrom
Fixes #2467.
This change is