Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove concept of Layers from Servo #13848

Merged
merged 1 commit into from Oct 21, 2016
Merged

Conversation

@mrobinson
Copy link
Member

mrobinson commented Oct 20, 2016


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because this PR should not change behavior.

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.


This change is Reviewable

@highfive
Copy link

highfive commented Oct 20, 2016

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/constellation.rs
  • @KiChjang: components/script_layout_interface/wrapper_traits.rs, components/script_traits/script_msg.rs, components/script_traits/script_msg.rs, components/script_traits/lib.rs, components/script_traits/lib.rs, components/script/script_thread.rs, components/script_layout_interface/message.rs, components/script/dom/window.rs, components/script_layout_interface/rpc.rs
  • @fitzgen: components/script_layout_interface/wrapper_traits.rs, components/script_traits/script_msg.rs, components/script_traits/script_msg.rs, components/script_traits/lib.rs, components/script_traits/lib.rs, components/script/script_thread.rs, components/script_layout_interface/message.rs, components/script/dom/window.rs, components/script_layout_interface/rpc.rs
  • @emilio: components/layout/display_list_builder.rs, components/layout/fragment.rs, components/layout/webrender_helpers.rs, components/layout/block.rs, components/layout/query.rs, components/layout/context.rs, components/layout/flow.rs
@highfive
Copy link

highfive commented Oct 20, 2016

warning Warning warning

  • These commits modify gfx, layout, and script code, but no tests are modified. Please consider adding a test!
@glennw
Copy link
Member

glennw commented Oct 20, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 20, 2016

Trying commit ded8b6b with merge f6bcace...

bors-servo added a commit that referenced this pull request Oct 20, 2016
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 -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 20, 2016

💔 Test failed - linux-rel-css

@mrobinson
Copy link
Member Author

mrobinson commented Oct 20, 2016

The failure seems to be #13847.

@emilio
emilio approved these changes Oct 20, 2016
Copy link
Member

emilio left a comment

The layout changes look good to me, modulo these two nits.

I'll let @glennw sign-off it it he wants though :)

@@ -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.

@emilio

emilio Oct 20, 2016

Member

You'll also need to remove this line :P

This comment has been minimized.

@mrobinson

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.

@emilio

emilio Oct 20, 2016

Member

Yeah, I think it's not necessary.

This comment has been minimized.

@mrobinson

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?

@emilio
Copy link
Member

emilio commented Oct 20, 2016

On Thu, Oct 20, 2016 at 05:00:10AM -0700, Martin Robinson wrote:

Do you mind if I remove this in a followup change, since I want to minimize the risk of changing behavior in this PR?

Sure, that's fine for me :)

@mrobinson mrobinson force-pushed the mrobinson:remove-layers branch from ded8b6b to 15faf7c Oct 20, 2016
@mrobinson
Copy link
Member Author

mrobinson commented Oct 20, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 20, 2016

Trying commit 15faf7c with merge 64424bb...

bors-servo added a commit that referenced this pull request Oct 20, 2016
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 -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 20, 2016

@metajack
Copy link
Contributor

metajack commented Oct 20, 2016

@mrobinson Does this remove the dependency on rust-layers as well?

@mrobinson mrobinson force-pushed the mrobinson:remove-layers branch from 15faf7c to fe5a8a1 Oct 20, 2016
@mrobinson
Copy link
Member Author

mrobinson commented Oct 20, 2016

@metajack If I'm not mistaken, that dependency has already been removed.

@mrobinson
Copy link
Member Author

mrobinson commented Oct 20, 2016

I pushed a new version of the branch that also removed my old scrolling documentation which is doubly out-of-date now.

Copy link
Member

glennw left a comment

One question, otherwise r=me

@@ -298,9 +298,7 @@ impl WebRenderStackingContextConverter for StackingContext {
mut scroll_policy: ScrollPolicy,

This comment has been minimized.

@glennw

glennw Oct 20, 2016

Member

This variable is never read with this change, so can be removed if intentional.

This comment has been minimized.

@mrobinson

mrobinson Oct 21, 2016

Author Member

Whoops. I'll remove this.

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.
@mrobinson mrobinson force-pushed the mrobinson:remove-layers branch from fe5a8a1 to ccb7ab9 Oct 21, 2016
@mrobinson
Copy link
Member Author

mrobinson commented Oct 21, 2016

@bors-servo r=glennw

@bors-servo
Copy link
Contributor

bors-servo commented Oct 21, 2016

📌 Commit ccb7ab9 has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Oct 21, 2016

Testing commit ccb7ab9 with merge bb271ef...

bors-servo added a commit that referenced this pull request Oct 21, 2016
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 -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 21, 2016

@bors-servo bors-servo merged commit ccb7ab9 into servo:master Oct 21, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@mrobinson mrobinson deleted the mrobinson:remove-layers branch Oct 21, 2016
@stshine stshine mentioned this pull request Nov 8, 2016
3 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.