mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
With WebRender, only send resize events when window size is valid.
Fixes WR 116.
This commit is contained in:
parent
872ee19534
commit
78b284cefe
1 changed files with 4 additions and 3 deletions
|
@ -353,10 +353,11 @@ impl webrender_traits::RenderNotifier for RenderNotifier {
|
|||
pipeline_id: webrender_traits::PipelineId,
|
||||
size: Option<Size2D<f32>>) {
|
||||
let pipeline_id = pipeline_id.from_webrender();
|
||||
let size = size.unwrap_or(Size2D::zero());
|
||||
|
||||
self.constellation_chan.send(ConstellationMsg::FrameSize(pipeline_id,
|
||||
size)).unwrap();
|
||||
if let Some(size) = size {
|
||||
self.constellation_chan.send(ConstellationMsg::FrameSize(pipeline_id,
|
||||
size)).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue