mirror of
https://github.com/servo/servo.git
synced 2025-06-28 11:03:39 +01:00
Update WR (overscroll support + fix viewport tests).
This commit is contained in:
parent
72fd27bbcc
commit
44fe81da41
4 changed files with 7 additions and 9 deletions
|
@ -172,6 +172,10 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
|||
None
|
||||
};
|
||||
|
||||
let framebuffer_size = window.framebuffer_size();
|
||||
let framebuffer_size = webrender_traits::DeviceUintSize::new(framebuffer_size.width,
|
||||
framebuffer_size.height);
|
||||
|
||||
webrender::Renderer::new(webrender::RendererOptions {
|
||||
device_pixel_ratio: device_pixel_ratio,
|
||||
resource_override_path: Some(resource_path),
|
||||
|
@ -184,7 +188,7 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
|||
renderer_kind: renderer_kind,
|
||||
enable_subpixel_aa: opts.enable_subpixel_text_antialiasing,
|
||||
..Default::default()
|
||||
}).expect("Unable to initialize webrender!")
|
||||
}, framebuffer_size).expect("Unable to initialize webrender!")
|
||||
};
|
||||
|
||||
// Important that this call is done in a single-threaded fashion, we
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue