Take ScriptThread::compositor out of its RefCell.

There's no reason for it; IpcSender::send takes &self.
This commit is contained in:
Ms2ger 2016-05-23 11:17:42 +02:00
parent 7cea4eb01c
commit 2b014befd0
2 changed files with 10 additions and 11 deletions

View file

@ -1055,7 +1055,7 @@ impl Document {
key: Key,
state: KeyState,
modifiers: KeyModifiers,
compositor: &mut IpcSender<ScriptToCompositorMsg>) {
compositor: &IpcSender<ScriptToCompositorMsg>) {
let focused = self.get_focused_element();
let body = self.GetBody();