Rename ScriptChan in constellation to EventLoop#14260
Rename ScriptChan in constellation to EventLoop#14260bors-servo merged 1 commit intoservo:masterfrom
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. |
| * 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.
Some module-wide docs, please.
components/constellation/pipeline.rs
Outdated
| 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"); |
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
ScriptChanin 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 -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is