Auto merge of #9813 - glennw:iframe-sizing, r=pcwalton

With WebRender, only send resize events when window size is valid.

Fixes WR 112.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9813)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-03-01 06:46:01 +05:30
commit 4035f7ae2c

View file

@ -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();
}
}
}