mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Fixed scaling artefacts in paint worklets caused by zoom and hidpi.
This commit is contained in:
parent
e19fefcb47
commit
caa3585219
24 changed files with 160 additions and 77 deletions
|
@ -23,7 +23,7 @@ use euclid::{Point2D, TypedPoint2D, TypedRect, Size2D, TypedSize2D, ScaleFactor}
|
|||
use gleam::gl;
|
||||
use msg::constellation_msg::{Key, KeyModifiers};
|
||||
use net_traits::net_error_list::NetError;
|
||||
use script_traits::{DevicePixel, LoadData};
|
||||
use script_traits::LoadData;
|
||||
use servo::ipc_channel::ipc::IpcSender;
|
||||
use servo_geometry::DeviceIndependentPixel;
|
||||
use std::cell::RefCell;
|
||||
|
@ -34,6 +34,7 @@ use std::rc::Rc;
|
|||
use std::sync::mpsc::{Sender, channel};
|
||||
use servo_url::ServoUrl;
|
||||
use style_traits::cursor::Cursor;
|
||||
use style_traits::DevicePixel;
|
||||
#[cfg(target_os="linux")]
|
||||
extern crate x11;
|
||||
#[cfg(target_os="linux")]
|
||||
|
|
|
@ -24,7 +24,7 @@ use msg::constellation_msg::{ALT, CONTROL, KeyState, NONE, SHIFT, SUPER, Travers
|
|||
use net_traits::net_error_list::NetError;
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
use osmesa_sys;
|
||||
use script_traits::{DevicePixel, LoadData, TouchEventType, TouchpadPressurePhase};
|
||||
use script_traits::{LoadData, TouchEventType, TouchpadPressurePhase};
|
||||
use servo::ipc_channel::ipc::IpcSender;
|
||||
use servo_config::opts;
|
||||
use servo_config::prefs::PREFS;
|
||||
|
@ -39,6 +39,7 @@ use std::mem;
|
|||
use std::os::raw::c_void;
|
||||
use std::ptr;
|
||||
use std::rc::Rc;
|
||||
use style_traits::DevicePixel;
|
||||
use style_traits::cursor::Cursor;
|
||||
#[cfg(target_os = "windows")]
|
||||
use user32;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue