mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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,11 +353,12 @@ impl webrender_traits::RenderNotifier for RenderNotifier {
|
||||||
pipeline_id: webrender_traits::PipelineId,
|
pipeline_id: webrender_traits::PipelineId,
|
||||||
size: Option<Size2D<f32>>) {
|
size: Option<Size2D<f32>>) {
|
||||||
let pipeline_id = pipeline_id.from_webrender();
|
let pipeline_id = pipeline_id.from_webrender();
|
||||||
let size = size.unwrap_or(Size2D::zero());
|
|
||||||
|
|
||||||
|
if let Some(size) = size {
|
||||||
self.constellation_chan.send(ConstellationMsg::FrameSize(pipeline_id,
|
self.constellation_chan.send(ConstellationMsg::FrameSize(pipeline_id,
|
||||||
size)).unwrap();
|
size)).unwrap();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Window: WindowMethods> IOCompositor<Window> {
|
impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue