mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Use webrender_api::units::DevicePixel
rather than style_traits::DevicePixel
unless interfacing with Stylo (#34353)
* Use webrender_api::units::DevicePixel rather than style_traits::DevicePixel unless interfacing with Stylo Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix OpenHarmony build Signed-off-by: Nico Burns <nico@nicoburns.com> --------- Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
parent
97154d9cf8
commit
63793ccbb7
17 changed files with 52 additions and 46 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use euclid::{Point2D, Size2D};
|
||||
use servo::style_traits::DevicePixel;
|
||||
use servo::webrender_api::units::DevicePixel;
|
||||
use winit::dpi::{PhysicalPosition, PhysicalSize};
|
||||
|
||||
pub fn winit_size_to_euclid_size<T>(size: PhysicalSize<T>) -> Size2D<T, DevicePixel> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue