mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Responding to review comments.
This commit is contained in:
parent
3962ffc501
commit
8797f6f3ec
5 changed files with 15 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue