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 ConstellationChan. #11270

Merged
merged 1 commit into from May 19, 2016
Merged

Remove ConstellationChan. #11270

merged 1 commit into from May 19, 2016

Conversation

@Ms2ger
Copy link
Contributor

Ms2ger commented May 19, 2016

Thank you for contributing to Servo! Please replace each [ ] by [X] when the step is complete, and replace __ with appropriate data:

  • ./mach build -d does not report any errors
  • ./mach test-tidy --faster does not report any errors
  • These changes fix #__ (github issue number if applicable).

Either:

  • There are tests for these changes OR
  • These changes do not require tests because _____

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

It's a pointless abstraction that propagates the obsolete chan terminology,
swaps the order in which the sender and receiver are returned, and hides a
source of panics.


This change is Reviewable

@highfive
Copy link

highfive commented May 19, 2016

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/constellation.rs
  • @KiChjang: components/script/dom/bindings/global.rs, components/script/layout_interface.rs, components/script/dom/window.rs, components/script_traits/lib.rs, components/script_traits/lib.rs, components/script/dom/document.rs, components/script/dom/htmllinkelement.rs, components/script/clipboard_provider.rs, components/script/dom/workerglobalscope.rs, components/script/dom/htmltextareaelement.rs, components/script/script_thread.rs, components/script/dom/htmlinputelement.rs, components/script/dom/htmlbodyelement.rs, components/script/dom/htmliframeelement.rs, components/script/dom/webglrenderingcontext.rs, components/script/dom/bindings/trace.rs, components/script/dom/canvasrenderingcontext2d.rs
  • @emilio: components/script/dom/webglrenderingcontext.rs
@highfive
Copy link

highfive commented May 19, 2016

warning Warning warning

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

asajeffrey commented May 19, 2016

Yes yes yes!

@asajeffrey
Copy link
Member

asajeffrey commented May 19, 2016

Reviewed 24 of 24 files at r1.
Review status: all files reviewed at latest revision, 2 unresolved discussions.


components/constellation/constellation.rs, line 327 [r1] (raw file):

    pub fn start(state: InitialConstellationState) -> Sender<FromCompositorMsg> {
        let (ipc_script_sender, ipc_script_receiver) =
            ipc::channel::<FromScriptMsg>().expect("ipc channel failure");

Do we need to provide the type arguments here? Can we not just use ipc::channel().expect("ipc channel failure")?


components/layout/layout_thread.rs, line 1084 [r1] (raw file):

                rw_data.constellation_chan
                       .send(ConstellationMsg::ViewportConstrained(self.id, constraints))
                       .unwrap();

This is so much cleaner, hooray!


Comments from Reviewable

It's a pointless abstraction that propagates the obsolete chan terminology,
swaps the order in which the sender and receiver are returned, and hides a
source of panics.
@Ms2ger Ms2ger force-pushed the ConstellationChan branch from bb2a000 to cc2b2b5 May 19, 2016
@highfive
Copy link

highfive commented May 19, 2016

New code was committed to pull request.

@asajeffrey
Copy link
Member

asajeffrey commented May 19, 2016

@bors-servo
Copy link
Contributor

bors-servo commented May 19, 2016

📌 Commit cc2b2b5 has been approved by asajeffrey

@nox
Copy link
Member

nox commented May 19, 2016

@bors-servo r-

Homu confused, will r+ again.

@nox
Copy link
Member

nox commented May 19, 2016

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented May 19, 2016

📌 Commit cc2b2b5 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented May 19, 2016

Testing commit cc2b2b5 with merge 27c25e8...

bors-servo added a commit that referenced this pull request May 19, 2016
Remove ConstellationChan.

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 --faster` 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 _____

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

It's a pointless abstraction that propagates the obsolete chan terminology,
swaps the order in which the sender and receiver are returned, and hides a
source of panics.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11270)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 19, 2016

@bors-servo bors-servo merged commit cc2b2b5 into master May 19, 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
@emilio emilio deleted the ConstellationChan branch May 19, 2016
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

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