Skip to content

remove ScriptListener - #7191

Merged
bors-servo merged 3 commits into
servo:masterfrom
vectorijk:removeScriptListener
Aug 16, 2015
Merged

bors-servo merged 3 commits into
servo:masterfrom
vectorijk:removeScriptListener

Conversation

@vectorijk

Copy link
Copy Markdown
Contributor

Fix issue #7175 and for code review

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 13, 2015
@highfive

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @Ms2ger (or someone else) soon.

@Ms2ger

Ms2ger commented Aug 13, 2015

Copy link
Copy Markdown
Contributor

-S-awaiting-review +S-awaiting-answer

Thank you for your PR. I have one question below.


Reviewed 7 of 7 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


components/script/script_task.rs, line 1289 [r1] (raw file):
I don't understand why we need these RefMut::map calls.


Comments from the review on Reviewable.io

@Ms2ger Ms2ger added S-awaiting-answer Someone asked a question that requires an answer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 13, 2015
@vectorijk

Copy link
Copy Markdown
Contributor Author

components/script/script_task.rs, line 1289 [r1] (raw file):
cause self.compositor return type is DOMRefCell<IpcSender<ScriptToCompositorMsg>> and self.compositor.borrow_mut() return type isRefMut<'_, IpcSender<ScriptToCompositorMsg>>. So I use RefMut::map to get IpcSender<T>. Do you have better way to get it?


Comments from the review on Reviewable.io

@jdm

jdm commented Aug 13, 2015

Copy link
Copy Markdown
Member

We can just dereference RefMut<T> via * to get &mut T.

@vectorijk

Copy link
Copy Markdown
Contributor Author

@jdm Okay, Got it~ I might try dereference RefMut<T> via * before. But I gave up this method cause I didn't use correct parentheses. And I will revise this for code review later.

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-answer Someone asked a question that requires an answer. labels Aug 13, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 13, 2015
@vectorijk

Copy link
Copy Markdown
Contributor Author

components/script/script_task.rs, line 1289 [r1] (raw file):
Okay, I changed that.


Comments from the review on Reviewable.io

@Ms2ger

Ms2ger commented Aug 14, 2015

Copy link
Copy Markdown
Contributor

-S-awaiting-review +S-needs-code-changes


Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


components/script/script_task.rs, line 1289 [r1] (raw file):
Thanks. Could you try without the explicit dereferencing too (i.e., self.compositor.borrow_mut().send(ScriptToCompositorMsg::Exit).unwrap();


Comments from the review on Reviewable.io

@Ms2ger Ms2ger added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 14, 2015
@Ms2ger Ms2ger self-assigned this Aug 14, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 14, 2015
@vectorijk

Copy link
Copy Markdown
Contributor Author

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7006) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 15, 2015
@vectorijk
vectorijk force-pushed the removeScriptListener branch from 4e70c67 to 270df6b Compare August 16, 2015 08:45
@vectorijk

Copy link
Copy Markdown
Contributor Author

@Ms2ger @jdm rebased it.

@Ms2ger

Ms2ger commented Aug 16, 2015

Copy link
Copy Markdown
Contributor

Thank you!

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 270df6b has been approved by Ms2ger

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 270df6b with merge 5ab9aa5...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. labels Aug 16, 2015
bors-servo pushed a commit that referenced this pull request Aug 16, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants