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 upWait as late as possible to assign ClipIds #18951
Conversation
highfive
commented
Oct 19, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Oct 19, 2017
|
@glennw This is the first step toward eliminating rounded rectangle from LocalClip. After this we just need to:
|
|
|
8a156cb
to
a0c12b6
|
Reviewed 6 of 6 files at r1. components/gfx/display_list/mod.rs, line 229 at r1 (raw file):
nit: could use the new syntax to avoid duplicating the names here components/layout/display_list_builder.rs, line 215 at r1 (raw file):
Should this be zero? components/layout/display_list_builder.rs, line 275 at r1 (raw file):
remove this? Comments from Reviewable |
|
Nice! One question - and a couple of minor nits. r=me once those are resolved. |
|
|
|
|
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. components/gfx/display_list/mod.rs, line 229 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
Oh. Good idea. I'll do that. components/layout/display_list_builder.rs, line 215 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
This node is only used to take up a spot in the list of ClipScrollNodes the real root scroll node is added by WebRender (though I think we should change that eventually, because it's an extra node that Gecko doesn't need). components/layout/display_list_builder.rs, line 275 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
Thanks! Not sure how that slipped through. I'll also add a documentation comment for the member. Comments from Reviewable |
a0c12b6
to
b3c8e4e
|
|
b3c8e4e
to
cc7b01d
|
@bors-servo r=glennw |
|
|
…nodes, r=glennw Wait as late as possible to assign ClipIds <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they should not change behavior. <!-- 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/18951) <!-- Reviewable:end -->
|
|
|
cc7b01d
to
636722a
|
This seems to have exposed some cases where we were inheriting properties that we should not have been for table pseudo-elements (elements created by display: table* properties). I have updated the PR to:
Maybe @emilio can review the changes to resources/servo.css to ensure that they make sense? |
This will allow Servo to create ClipScrollNodes later during display list construction, which will be necessary once rounded rectangles are removed from the LocalClip structure. Instead of keeping track of the ClipId of each ClipScrollNode, we keep track of its index in an array of ClipScrollNodes. This will allow us to access them without a hash lookup.
636722a
to
5937f62
|
@bors-servo r=glennw,emilio |
|
|
…nodes, r=glennw,emilio Wait as late as possible to assign ClipIds <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they should not change behavior. <!-- 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/18951) <!-- Reviewable:end -->
|
|
mrobinson commentedOct 19, 2017
•
edited by SimonSapin
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is