mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fix reported test-tidy errors for unmerged import blocks
This merges import blocks that were reported by tidy as unmerged.
This commit is contained in:
parent
e924393be8
commit
de3547e401
213 changed files with 598 additions and 934 deletions
|
@ -4,39 +4,36 @@
|
|||
|
||||
//! A windowing implementation using glutin.
|
||||
|
||||
use NestedEventLoopListener;
|
||||
use compositing::compositor_task::{self, CompositorProxy, CompositorReceiver};
|
||||
#[cfg(feature = "window")]
|
||||
use compositing::windowing::{MouseWindowEvent, WindowNavigateMsg};
|
||||
use compositing::windowing::{WindowEvent, WindowMethods};
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::TypedSize2D;
|
||||
use euclid::{Size2D, Point2D};
|
||||
use gleam::gl;
|
||||
use glutin;
|
||||
#[cfg(feature = "window")]
|
||||
use glutin::{Api, ElementState, Event, GlRequest, MouseButton, VirtualKeyCode, MouseScrollDelta};
|
||||
use layers::geometry::DevicePixel;
|
||||
use layers::platform::surface::NativeDisplay;
|
||||
#[cfg(feature = "window")]
|
||||
use msg::constellation_msg::{KeyState, NONE, CONTROL, SHIFT, ALT, SUPER};
|
||||
use msg::constellation_msg::{self, Key};
|
||||
use net_traits::net_error_list::NetError;
|
||||
#[cfg(feature = "window")]
|
||||
use std::cell::{Cell, RefCell};
|
||||
#[cfg(all(feature = "headless", target_os = "linux"))]
|
||||
use std::ptr;
|
||||
use std::rc::Rc;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
use url::Url;
|
||||
use util::cursor::Cursor;
|
||||
use util::geometry::ScreenPx;
|
||||
|
||||
use NestedEventLoopListener;
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
use compositing::windowing::{MouseWindowEvent, WindowNavigateMsg};
|
||||
#[cfg(feature = "window")]
|
||||
use glutin::{Api, ElementState, Event, GlRequest, MouseButton, VirtualKeyCode, MouseScrollDelta};
|
||||
#[cfg(feature = "window")]
|
||||
use msg::constellation_msg::{KeyState, NONE, CONTROL, SHIFT, ALT, SUPER};
|
||||
#[cfg(feature = "window")]
|
||||
use std::cell::{Cell, RefCell};
|
||||
#[cfg(feature = "window")]
|
||||
use util::opts;
|
||||
|
||||
#[cfg(all(feature = "headless", target_os = "linux"))]
|
||||
use std::ptr;
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
static mut g_nested_event_loop_listener: Option<*mut (NestedEventLoopListener + 'static)> = None;
|
||||
|
||||
|
|
|
@ -2,8 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use compositing::windowing::{WindowEvent, MouseWindowEvent};
|
||||
use errno::errno;
|
||||
use euclid::point::Point2D;
|
||||
use libc::{c_int, c_long, time_t};
|
||||
use script_traits::MouseButton;
|
||||
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
use std::mem::{size_of, transmute, zeroed};
|
||||
|
@ -12,13 +15,6 @@ use std::path::Path;
|
|||
use std::sync::mpsc::Sender;
|
||||
use std::thread;
|
||||
|
||||
use euclid::point::Point2D;
|
||||
|
||||
use errno::errno;
|
||||
use libc::{c_int, c_long, time_t};
|
||||
|
||||
use compositing::windowing::{WindowEvent, MouseWindowEvent};
|
||||
|
||||
|
||||
extern {
|
||||
// XXX: no variadic form in std libs?
|
||||
|
|
|
@ -47,9 +47,8 @@ extern {}
|
|||
use compositing::windowing::WindowEvent;
|
||||
use net_traits::hosts;
|
||||
use servo::Browser;
|
||||
use util::opts;
|
||||
|
||||
use std::env;
|
||||
use util::opts;
|
||||
|
||||
mod input;
|
||||
mod window;
|
||||
|
|
|
@ -6,13 +6,23 @@
|
|||
|
||||
use compositing::compositor_task::{self, CompositorProxy, CompositorReceiver};
|
||||
use compositing::windowing::{WindowEvent, WindowMethods};
|
||||
use egl::egl;
|
||||
use egl::egl::EGLConfig;
|
||||
use egl::egl::EGLContext;
|
||||
use egl::egl::EGLDisplay;
|
||||
use egl::egl::EGLSurface;
|
||||
use egl::egl::EGLint;
|
||||
use euclid::point::Point2D;
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::{Size2D, TypedSize2D};
|
||||
use gleam::gl;
|
||||
use layers::geometry::DevicePixel;
|
||||
use layers::platform::surface::NativeDisplay;
|
||||
use libc::c_char;
|
||||
use libc::c_int;
|
||||
use libc::c_void;
|
||||
use libc::close;
|
||||
use libc::size_t;
|
||||
use msg::constellation_msg::{Key, KeyModifiers};
|
||||
use net_traits::net_error_list::NetError;
|
||||
use std::ffi::CString;
|
||||
|
@ -24,18 +34,6 @@ use url::Url;
|
|||
use util::cursor::Cursor;
|
||||
use util::geometry::ScreenPx;
|
||||
|
||||
use egl::egl;
|
||||
use egl::egl::EGLConfig;
|
||||
use egl::egl::EGLContext;
|
||||
use egl::egl::EGLDisplay;
|
||||
use egl::egl::EGLSurface;
|
||||
use egl::egl::EGLint;
|
||||
|
||||
use libc::c_char;
|
||||
use libc::c_void;
|
||||
use libc::close;
|
||||
use libc::size_t;
|
||||
|
||||
const GRALLOC_USAGE_HW_TEXTURE: c_int = 0x00000100;
|
||||
const GRALLOC_USAGE_HW_RENDER: c_int = 0x00000200;
|
||||
const GRALLOC_USAGE_HW_2D: c_int = 0x00000400;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue