Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMove body of ScriptTask::handle_mouse_move_event into a method on #5032
Conversation
highfive
commented
Feb 23, 2015
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @kmcallister (or someone else) soon. |
hoppipolla-critic-bot
commented
Feb 23, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/4075 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
| let mouse_over_targets = &mut *self.mouse_over_targets.borrow_mut(); | ||
|
|
||
| if document.r().handle_mouse_move_event(self.js_runtime.ptr, point, mouse_over_targets) { | ||
|
|
This comment has been minimized.
This comment has been minimized.
| @@ -450,6 +452,91 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> { | |||
| None => {} | |||
| } | |||
| } | |||
|
|
|||
| fn handle_mouse_move_event (self, js_runtime: *mut JSRuntime, point: Point2D<f32>, mouse_over_targets: &mut Option<Vec<JS<Node>>>) -> bool{ | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
kmcallister
Feb 23, 2015
Contributor
Also can you wrap this line, and the line added in the trait, to fit within 100 columns (ideally, 80)?
|
r=me with those syntax tweaks |
|
Can you give me advise how to wrap func, please? |
|
Just move arguments that go beyond 80 characters on to the next line, starting in the same column as the arguments on the previous line. |
|
Omg, excuse me) |
But when im trying to make |
|
Ah, the best solution there is to use branches when making commits. I leave master tracking the upstream master, and rebase my feature branches based on it. |
|
You could do
and then you should have a |
JIoJIaJIu commentedFeb 23, 2015
Document #4984