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 upRemove concept of Layers from Servo #13848
Conversation
highfive
commented
Oct 20, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Oct 20, 2016
|
@bors-servo try |
Remove concept of Layers from Servo <!-- 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 this PR should not change behavior. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code. <!-- 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/13848) <!-- Reviewable:end -->
|
|
|
The failure seems to be #13847. |
| @@ -635,9 +625,6 @@ bitflags! { | |||
| pub flags FlowFlags: u32 { | |||
| // text align flags | |||
| #[doc = "Whether this flow must have its own layer. Even if this flag is not set, it might"] | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mrobinson
Oct 20, 2016
Author
Member
Thanks for pointing this out! I've fixed it in the latest version of the branch.
|
|
||
| // TODO(mrobinson): Determine if this is necessary, since blocks with | ||
| // transformations already create stacking contexts. | ||
| if self.style().get_effects().perspective != LengthOrNone::None { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mrobinson
Oct 20, 2016
Author
Member
Do you mind if I remove this in a followup change, since I want to minimize the risk of changing behavior in this PR?
|
On Thu, Oct 20, 2016 at 05:00:10AM -0700, Martin Robinson wrote:
Sure, that's fine for me :) |
|
@bors-servo try |
Remove concept of Layers from Servo <!-- 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 this PR should not change behavior. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code. <!-- 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/13848) <!-- Reviewable:end -->
|
|
|
@mrobinson Does this remove the dependency on rust-layers as well? |
|
@metajack If I'm not mistaken, that dependency has already been removed. |
|
I pushed a new version of the branch that also removed my old scrolling documentation which is doubly out-of-date now. |
|
One question, otherwise r=me |
| @@ -298,9 +298,7 @@ impl WebRenderStackingContextConverter for StackingContext { | |||
| mut scroll_policy: ScrollPolicy, | |||
This comment has been minimized.
This comment has been minimized.
glennw
Oct 20, 2016
Member
This variable is never read with this change, so can be removed if intentional.
This comment has been minimized.
This comment has been minimized.
Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code.
|
@bors-servo r=glennw |
|
|
Remove concept of Layers from Servo <!-- 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 this PR should not change behavior. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code. <!-- 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/13848) <!-- Reviewable:end -->
|
|
mrobinson commentedOct 20, 2016
•
edited by larsbergstrom
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsLayers were a feature of the legacy drawing path. If we re-add them at
some point, it probably makes more sense to make them a product of
display list inspection.
This change also remove a bunch of dead painting code.
This change is