mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
commit
4035f7ae2c
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