Repository navigation
Used shared clips for overflow:hidden and CSS clip - #16336
Conversation
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try |
Used shared clips for overflow:hidden and CSS clip Instead of passing down a complex clipping region to each item, used shared clipping to handle overflow:hidden and CSS clips. In addition to being more efficient, this should also fix quite a few issues related to absolutely positioned elements. One existing reftest is slightly modified to avoid tickling a quirk with the way that WebRender rasterizes masks. We are working out how to best express these combined masks with the API or need to. The change does not affect the original subject of the reftest. Fixes #13109. Fixes #10151. Fixes #7575. Fixes #8074. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13109, #10151, #7575, #8074. <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16336) <!-- Reviewable:end -->
|
💔 Test failed - arm64 |
|
Reviewed 15 of 15 files at r1. components/layout/block.rs, line 1787 at r1 (raw file):
Super happy to see this function removed! components/layout/display_list_builder.rs, line 580 at r1 (raw file):
nit: This could probably be simplified - moving the creation of the clip outside the conditional. components/layout/display_list_builder.rs, line 1871 at r1 (raw file):
Add a comment explaining when / how the preserved state is used? Comments from Reviewable |
|
@mrobinson This looks great! Added a few nits, and the manifest check failed on CI. |
2721514 to
903230a
Compare
|
Review status: 13 of 15 files reviewed at latest revision, 2 unresolved discussions. components/layout/display_list_builder.rs, line 580 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
Done. components/layout/display_list_builder.rs, line 1871 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
Done. Comments from Reviewable |
|
@bors-servo r+ |
|
📌 Commit 903230a has been approved by |
|
@bors-servo try |
Used shared clips for overflow:hidden and CSS clip Instead of passing down a complex clipping region to each item, used shared clipping to handle overflow:hidden and CSS clips. In addition to being more efficient, this should also fix quite a few issues related to absolutely positioned elements. One existing reftest is slightly modified to avoid tickling a quirk with the way that WebRender rasterizes masks. We are working out how to best express these combined masks with the API or need to. The change does not affect the original subject of the reftest. Fixes #13109. Fixes #10151. Fixes #7575. Fixes #8074. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13109, #10151, #7575, #8074. <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16336) <!-- Reviewable:end -->
|
I tried to fetch this branch and compiled it, but reddit looks worse in it when scrolling. Hope everything is right ... |
|
@stshine I'm investigating these problems now. Thanks for bringing them to my attention! |
|
Looks like this PR exposed a WebRender bug. I have a PR to fix it here: servo/webrender#1114. This should wait to land until we do a WebRender update. |
|
💥 Test timed out |
|
This should probably wait until #16463 lands to be rebased and reviewed. The changes here will exacerbate problems fixed in that PR. |
7b3abcb to
766df90
Compare
|
☔ The latest upstream changes (presumably #16463) made this pull request unmergeable. Please resolve the merge conflicts. |
Instead of passing down a complex clipping region to each item, used shared clipping to handle overflow:hidden and CSS clips. In addition to being more efficient, this should also fix quite a few issues related to absolutely positioned elements. One existing reftest is slightly modified to avoid tickling a quirk with the way that WebRender rasterizes masks. We are working out how to best express these combined masks with the API or need to. The change does not affect the original subject of the reftest. Fixes servo#13109. Fixes servo#10151. Fixes servo#7575. Fixes servo#8074. Fixes servo#8780.
766df90 to
4451b8a
Compare
|
Okay. This change should be good to go now. |
|
@bors-servo r+ |
|
📌 Commit 4451b8a has been approved by |
Used shared clips for overflow:hidden and CSS clip Instead of passing down a complex clipping region to each item, used shared clipping to handle overflow:hidden and CSS clips. In addition to being more efficient, this should also fix quite a few issues related to absolutely positioned elements. One existing reftest is slightly modified to avoid tickling a quirk with the way that WebRender rasterizes masks. We are working out how to best express these combined masks with the API or need to. The change does not affect the original subject of the reftest. Fixes #13109. Fixes #10151. Fixes #7575. Fixes #8074. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13109, #10151, #7575, #8074. <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16336) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev |
Instead of passing down a complex clipping region to each item, used
shared clipping to handle overflow:hidden and CSS clips. In addition to
being more efficient, this should also fix quite a few issues related
to absolutely positioned elements.
One existing reftest is slightly modified to avoid tickling a quirk
with the way that WebRender rasterizes masks. We are working out how to
best express these combined masks with the API or need to. The change
does not affect the original subject of the reftest.
Fixes #13109.
Fixes #10151.
Fixes #7575.
Fixes #8074.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is