зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #9813 - With WebRender, only send resize events when window size is valid (from glennw:iframe-sizing); r=pcwalton
Fixes WR 112. Source-Repo: https://github.com/servo/servo Source-Revision: 4035f7ae2c4925675263f514884ec702ac3d5460
This commit is contained in:
Родитель
477cf70ac7
Коммит
85c56fc373
|
@ -353,12 +353,13 @@ 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());
|
||||
|
||||
if let Some(size) = size {
|
||||
self.constellation_chan.send(ConstellationMsg::FrameSize(pipeline_id,
|
||||
size)).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<Window: WindowMethods> IOCompositor<Window> {
|
||||
fn new(window: Rc<Window>, state: InitialCompositorState)
|
||||
|
|
Загрузка…
Ссылка в новой задаче