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
Rename ScriptChan in constellation to EventLoop #14260
Conversation
r? @Ms2ger |
Huh... not sure how this ties into the task queue concept as well, for which we have an assortment of task sources under script/task_sources. |
@KiChjang I don't think the constellation needs to know about task queues, just about event loops. Could be wrong! We do have a general issue about naming, because some things are needed in script, some in the constellation, and some in both. |
@asajeffrey Oh, I meant that whether it'd be useful to store a Vec of TaskSources or whatnot in the event loop, as per spec. |
@KiChjang good question, I think not, since they're needed by script and not the constellation. |
I'm going to wait until #13996 lands. |
☔ The latest upstream changes (presumably #14173) made this pull request unmergeable. Please resolve the merge conflicts. |
cae98f4
to
46a666b
Compare
☔ The latest upstream changes (presumably #14211) made this pull request unmergeable. Please resolve the merge conflicts. |
46a666b
to
4ae4fb0
Compare
☔ The latest upstream changes (presumably #13996) made this pull request unmergeable. Please resolve the merge conflicts. |
4ae4fb0
to
cdfe6da
Compare
Rebase, make it build, and ping me :) |
cdfe6da
to
3f4e52e
Compare
@Ms2ger it builds again now. |
3f4e52e
to
b634987
Compare
☔ The latest upstream changes (presumably #14536) made this pull request unmergeable. Please resolve the merge conflicts. |
b634987
to
5e9b35e
Compare
@Ms2ger Review ping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ with nits.
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
use ipc_channel::ipc::IpcSender; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some module-wide docs, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
warn!("Sending mozbrowser event to script failed ({}).", e); | ||
} | ||
} | ||
|
||
fn notify_visibility(&self) { | ||
self.script_chan.send(ConstellationControlMsg::ChangeFrameVisibilityStatus(self.id, self.visible)) | ||
self.event_loop.send(ConstellationControlMsg::ChangeFrameVisibilityStatus(self.id, self.visible)) | ||
.expect("Pipeline script chan"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
5e9b35e
to
e945e38
Compare
@bors-servo r=Ms2ger |
📌 Commit e945e38 has been approved by |
Rename ScriptChan in constellation to EventLoop <!-- Please describe your changes on the following line: --> We currently have a type `ScriptChan` in the constellation, which is named after its implementation rather than its semantics. In the spec, the nearest concept seems to be event loop https://html.spec.whatwg.org/multipage/#event-loop. --- <!-- 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 - [X] These changes do not require tests because renaming. <!-- 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/14260) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-dev |
We currently have a type
ScriptChan
in the constellation, which is named after its implementation rather than its semantics. In the spec, the nearest concept seems to be event loop https://html.spec.whatwg.org/multipage/#event-loop../mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is