mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
This reverts commit f2f5614ad6
.
This is causing intermittent crashes: https://github.com/servo/servo/actions/runs/11167043809/job/31044255019
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
826e31eaa5
commit
48f8ff6236
28 changed files with 799 additions and 545 deletions
|
@ -241,11 +241,11 @@ pub struct EmbedderCoordinates {
|
|||
/// The pixel density of the display.
|
||||
pub hidpi_factor: Scale<f32, DeviceIndependentPixel, DevicePixel>,
|
||||
/// Size of the screen.
|
||||
pub screen_size: DeviceIntSize,
|
||||
pub screen: DeviceIntSize,
|
||||
/// Size of the available screen space (screen without toolbars and docks).
|
||||
pub available_screen_size: DeviceIntSize,
|
||||
/// Position and size of the native window.
|
||||
pub window_rect: DeviceIntRect,
|
||||
pub screen_avail: DeviceIntSize,
|
||||
/// Size of the native window.
|
||||
pub window: (DeviceIntSize, DeviceIntPoint),
|
||||
/// Size of the GL buffer in the window.
|
||||
pub framebuffer: DeviceIntSize,
|
||||
/// Coordinates of the document within the framebuffer.
|
||||
|
@ -290,9 +290,9 @@ mod test {
|
|||
let screen = Size2D::new(1080, 720);
|
||||
let coordinates = EmbedderCoordinates {
|
||||
hidpi_factor: Scale::new(1.),
|
||||
screen_size: screen,
|
||||
available_screen_size: screen,
|
||||
window_rect: DeviceIntRect::from_origin_and_size(pos, viewport),
|
||||
screen,
|
||||
screen_avail: screen,
|
||||
window: (viewport, pos),
|
||||
framebuffer: viewport,
|
||||
viewport: DeviceIntRect::from_origin_and_size(pos, viewport),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue