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 upBetter Preserve3D support #1208
Conversation
|
Reviewed 24 of 24 files at r1. webrender/src/frame_builder.rs, line 90 at r1 (raw file):
Could you expand on this comment a bit, and why webrender/src/frame_builder.rs, line 92 at r1 (raw file):
Is size already a LayerSize? wrench/reftests/split/reftest.list, line 3 at r1 (raw file):
Is this meant to be resolved before merge, or as a follow up? Comments from Reviewable |
|
@kvark Looks good - just a couple minor issues. |
|
@glennw thanks for the review! Your concerns are hopefully addressed now. Please take a look at the last commit. Review status: 11 of 21 files reviewed at latest revision, 3 unresolved discussions. webrender/src/frame_builder.rs, line 90 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
good idea! webrender/src/frame_builder.rs, line 92 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
unfortunately, it's wrench/reftests/split/reftest.list, line 3 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
nicely spotted! I worked on that test and encountered a logical problem with the code, related to handling the order of planes that geometrically match each other. Comments from Reviewable |
|
@bors-servo r+ |
|
|
Better Preserve3D support Follow up to #1169 Includes #1207 r? @glennw @mrobinson - "preserve-3d" only affects children stacking contexts and contained items - generated polygon coordinates of non-zero local bounds - sorting order The Servo PR is being [worked on](servo/servo@master...kvark:preserve3d), but it's not required here, since it may safely continue using `TransformStyle::Flat`. There is at least one feature on the horizon to be implemented before #739 can be truly closed. The `TransformStyle` should be moved out of the stacking context and deserve it's own pushable item (similar to clip-scroll groups). This is required because an item without "preserve-3d" automatically becomes "flat" but does not establish a stacking context, which is [tested by Servo](https://raw.githubusercontent.com/servo/servo/master/tests/wpt/css-tests/css-transforms-1_dev/html/transform3d-sorting-004.htm). Edit: apparently, Chrome disagrees here, so the current approach of WR might stay. Create Bugstar [issue-1362543](https://bugzilla.mozilla.org/show_bug.cgi?id=1362543). <!-- 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/1208) <!-- Reviewable:end -->
|
|
WR update: preserve-3d support <!-- Please describe your changes on the following line: --> This is WR update to servo/webrender@d335555 having new features: - limited "preserve-3d" support (servo/webrender#1169, servo/webrender#1208) - rayon thread pool (servo/webrender#1202) - further border rendering improvements Edit: the references to bincode serialization and border styles are removed from here, since they are already integrated into Servo. Edit2: this is alternative/similar to #16801, based on @mrobinson code (see first commit). --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). Related to #9087 Note that I'm unlocking a few tests as well as changing some related to `preserve-3d`. The changes come from common sense and comparison to Chromium. I'm ready to discuss them on a individual basis. <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ There is still an investigation to do with regards to the differences of preserve3d logic between Blink and Gecko. <!-- 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/16775) <!-- Reviewable:end -->
|
@staktrace I want to get some real use cases going (outside of our artificial tests) before closing the issue. |
kvark commentedMay 5, 2017
•
edited
Follow up to #1169
Includes #1207
r? @glennw @mrobinson
Fixes
Servo
The Servo PR is being worked on, but it's not required here, since it may safely continue using
TransformStyle::Flat.Future work
There is at least one feature on the horizon to be implemented before #739 can be truly closed.
The
TransformStyleshould be moved out of the stacking context and deserve it's own pushable item (similar to clip-scroll groups). This is required because an item without "preserve-3d" automatically becomes "flat" but does not establish a stacking context, which is tested by Servo.Edit: apparently, Chrome disagrees here, so the current approach of WR might stay.
Create Bugstar issue-1362543.
This change is