Responding to review comments.

This commit is contained in:
Alan Jeffrey 2016-05-20 09:45:34 -05:00
parent 3962ffc501
commit 8797f6f3ec
5 changed files with 15 additions and 13 deletions

View file

@ -293,7 +293,7 @@ impl<'a> Iterator for FrameTreeIterator<'a> {
struct WebDriverData {
load_channel: Option<(PipelineId, IpcSender<webdriver_msg::LoadStatus>)>,
resize_channel: Option<IpcSender<Option<WindowSizeData>>>,
resize_channel: Option<IpcSender<WindowSizeData>>,
}
impl WebDriverData {
@ -1713,7 +1713,7 @@ impl<LTF: LayoutThreadFactory, STF: ScriptThreadFactory> Constellation<LTF, STF>
}
if let Some(resize_channel) = self.webdriver.resize_channel.take() {
let _ = resize_channel.send(Some(new_size));
let _ = resize_channel.send(new_size);
}
self.window_size = new_size;