diff options
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index e3ae0634b93..b9ad630825c 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -8,56 +8,56 @@ use bluetooth_traits::BluetoothRequest; use canvas_traits::webgl::WebGLChan; use cssparser::{Parser, ParserInput}; use devtools_traits::{ScriptToDevtoolsControlMsg, TimelineMarker, TimelineMarkerType}; -use dom::bindings::cell::DomRefCell; -use dom::bindings::codegen::Bindings::DocumentBinding::{DocumentMethods, DocumentReadyState}; -use dom::bindings::codegen::Bindings::FunctionBinding::Function; -use dom::bindings::codegen::Bindings::HistoryBinding::HistoryBinding::HistoryMethods; -use dom::bindings::codegen::Bindings::MediaQueryListBinding::MediaQueryListBinding::MediaQueryListMethods; -use dom::bindings::codegen::Bindings::PermissionStatusBinding::PermissionState; -use dom::bindings::codegen::Bindings::RequestBinding::RequestInit; -use dom::bindings::codegen::Bindings::WindowBinding::{self, FrameRequestCallback, WindowMethods}; -use dom::bindings::codegen::Bindings::WindowBinding::{ScrollBehavior, ScrollToOptions}; -use dom::bindings::codegen::UnionTypes::RequestOrUSVString; -use dom::bindings::error::{Error, ErrorResult, Fallible}; -use dom::bindings::inheritance::Castable; -use dom::bindings::num::Finite; -use dom::bindings::refcounted::Trusted; -use dom::bindings::reflector::DomObject; -use dom::bindings::root::{Dom, DomRoot, MutNullableDom}; -use dom::bindings::str::{DOMString, USVString}; -use dom::bindings::structuredclone::StructuredCloneData; -use dom::bindings::trace::RootedTraceableBox; -use dom::bindings::utils::{GlobalStaticData, WindowProxyHandler}; -use dom::bindings::weakref::DOMTracker; -use dom::bluetooth::BluetoothExtraPermissionData; -use dom::crypto::Crypto; -use dom::cssstyledeclaration::{CSSModificationAccess, CSSStyleDeclaration, CSSStyleOwner}; -use dom::customelementregistry::CustomElementRegistry; -use dom::document::{AnimationFrameCallback, Document}; -use dom::element::Element; -use dom::event::Event; -use dom::eventtarget::EventTarget; -use dom::globalscope::GlobalScope; -use dom::hashchangeevent::HashChangeEvent; -use dom::history::History; -use dom::location::Location; -use dom::mediaquerylist::{MediaQueryList, MediaQueryListMatchState}; -use dom::mediaquerylistevent::MediaQueryListEvent; -use dom::messageevent::MessageEvent; -use dom::navigator::Navigator; -use dom::node::{Node, NodeDamage, document_from_node, from_untrusted_node_address}; -use dom::performance::Performance; -use dom::promise::Promise; -use dom::screen::Screen; -use dom::storage::Storage; -use dom::testrunner::TestRunner; -use dom::windowproxy::WindowProxy; -use dom::worklet::Worklet; -use dom::workletglobalscope::WorkletGlobalScopeType; +use crate::dom::bindings::cell::DomRefCell; +use crate::dom::bindings::codegen::Bindings::DocumentBinding::{DocumentMethods, DocumentReadyState}; +use crate::dom::bindings::codegen::Bindings::FunctionBinding::Function; +use crate::dom::bindings::codegen::Bindings::HistoryBinding::HistoryBinding::HistoryMethods; +use crate::dom::bindings::codegen::Bindings::MediaQueryListBinding::MediaQueryListBinding::MediaQueryListMethods; +use crate::dom::bindings::codegen::Bindings::PermissionStatusBinding::PermissionState; +use crate::dom::bindings::codegen::Bindings::RequestBinding::RequestInit; +use crate::dom::bindings::codegen::Bindings::WindowBinding::{self, FrameRequestCallback, WindowMethods}; +use crate::dom::bindings::codegen::Bindings::WindowBinding::{ScrollBehavior, ScrollToOptions}; +use crate::dom::bindings::codegen::UnionTypes::RequestOrUSVString; +use crate::dom::bindings::error::{Error, ErrorResult, Fallible}; +use crate::dom::bindings::inheritance::Castable; +use crate::dom::bindings::num::Finite; +use crate::dom::bindings::refcounted::Trusted; +use crate::dom::bindings::reflector::DomObject; +use crate::dom::bindings::root::{Dom, DomRoot, MutNullableDom}; +use crate::dom::bindings::str::{DOMString, USVString}; +use crate::dom::bindings::structuredclone::StructuredCloneData; +use crate::dom::bindings::trace::RootedTraceableBox; +use crate::dom::bindings::utils::{GlobalStaticData, WindowProxyHandler}; +use crate::dom::bindings::weakref::DOMTracker; +use crate::dom::bluetooth::BluetoothExtraPermissionData; +use crate::dom::crypto::Crypto; +use crate::dom::cssstyledeclaration::{CSSModificationAccess, CSSStyleDeclaration, CSSStyleOwner}; +use crate::dom::customelementregistry::CustomElementRegistry; +use crate::dom::document::{AnimationFrameCallback, Document}; +use crate::dom::element::Element; +use crate::dom::event::Event; +use crate::dom::eventtarget::EventTarget; +use crate::dom::globalscope::GlobalScope; +use crate::dom::hashchangeevent::HashChangeEvent; +use crate::dom::history::History; +use crate::dom::location::Location; +use crate::dom::mediaquerylist::{MediaQueryList, MediaQueryListMatchState}; +use crate::dom::mediaquerylistevent::MediaQueryListEvent; +use crate::dom::messageevent::MessageEvent; +use crate::dom::navigator::Navigator; +use crate::dom::node::{Node, NodeDamage, document_from_node, from_untrusted_node_address}; +use crate::dom::performance::Performance; +use crate::dom::promise::Promise; +use crate::dom::screen::Screen; +use crate::dom::storage::Storage; +use crate::dom::testrunner::TestRunner; +use crate::dom::windowproxy::WindowProxy; +use crate::dom::worklet::Worklet; +use crate::dom::workletglobalscope::WorkletGlobalScopeType; use dom_struct::dom_struct; use embedder_traits::EmbedderMsg; use euclid::{Point2D, Vector2D, Rect, Size2D, TypedPoint2D, TypedScale, TypedSize2D}; -use fetch; +use crate::fetch; use ipc_channel::ipc::IpcSender; use ipc_channel::router::ROUTER; use js::jsapi::JSAutoCompartment; @@ -68,9 +68,9 @@ use js::jsval::JSVal; use js::jsval::UndefinedValue; use js::rust::HandleValue; use js::rust::wrappers::JS_DefineProperty; -use layout_image::fetch_image_for_layout; +use crate::layout_image::fetch_image_for_layout; use libc; -use microtask::MicrotaskQueue; +use crate::microtask::MicrotaskQueue; use msg::constellation_msg::PipelineId; use net_traits::{ResourceThreads, ReferrerPolicy}; use net_traits::image_cache::{ImageCache, ImageResponder, ImageResponse}; @@ -85,9 +85,9 @@ use script_layout_interface::message::{Msg, Reflow, QueryMsg, ReflowGoal, Script use script_layout_interface::reporter::CSSErrorReporter; use script_layout_interface::rpc::{ContentBoxResponse, ContentBoxesResponse, LayoutRPC}; use script_layout_interface::rpc::{NodeScrollIdResponse, ResolvedStyleResponse, TextIndexResponse}; -use script_runtime::{CommonScriptMsg, ScriptChan, ScriptPort, ScriptThreadEventCategory, Runtime}; -use script_thread::{ImageCacheMsg, MainThreadScriptChan, MainThreadScriptMsg}; -use script_thread::{ScriptThread, SendableMainThreadScriptChan}; +use crate::script_runtime::{CommonScriptMsg, ScriptChan, ScriptPort, ScriptThreadEventCategory, Runtime}; +use crate::script_thread::{ImageCacheMsg, MainThreadScriptChan, MainThreadScriptMsg}; +use crate::script_thread::{ScriptThread, SendableMainThreadScriptChan}; use script_traits::{ConstellationControlMsg, DocumentState, LoadData}; use script_traits::{ScriptToConstellationChan, ScriptMsg, ScrollState, TimerEvent, TimerEventId}; use script_traits::{TimerSchedulerMsg, UntrustedNodeAddress, WindowSizeData, WindowSizeType}; @@ -118,21 +118,21 @@ use style::selector_parser::PseudoElement; use style::str::HTML_SPACE_CHARACTERS; use style::stylesheets::CssRuleType; use style_traits::{CSSPixel, DevicePixel, ParsingMode}; -use task::TaskCanceller; -use task_source::TaskSourceName; -use task_source::dom_manipulation::DOMManipulationTaskSource; -use task_source::file_reading::FileReadingTaskSource; -use task_source::history_traversal::HistoryTraversalTaskSource; -use task_source::media_element::MediaElementTaskSource; -use task_source::networking::NetworkingTaskSource; -use task_source::performance_timeline::PerformanceTimelineTaskSource; -use task_source::remote_event::RemoteEventTaskSource; -use task_source::user_interaction::UserInteractionTaskSource; -use task_source::websocket::WebsocketTaskSource; +use crate::task::TaskCanceller; +use crate::task_source::TaskSourceName; +use crate::task_source::dom_manipulation::DOMManipulationTaskSource; +use crate::task_source::file_reading::FileReadingTaskSource; +use crate::task_source::history_traversal::HistoryTraversalTaskSource; +use crate::task_source::media_element::MediaElementTaskSource; +use crate::task_source::networking::NetworkingTaskSource; +use crate::task_source::performance_timeline::PerformanceTimelineTaskSource; +use crate::task_source::remote_event::RemoteEventTaskSource; +use crate::task_source::user_interaction::UserInteractionTaskSource; +use crate::task_source::websocket::WebsocketTaskSource; use time; -use timers::{IsInterval, TimerCallback}; +use crate::timers::{IsInterval, TimerCallback}; use url::Position; -use webdriver_handlers::jsval_to_webdriver; +use crate::webdriver_handlers::jsval_to_webdriver; use webrender_api::{DeviceIntPoint, DeviceUintSize, DocumentId, ExternalScrollId, RenderApiSender}; use webvr_traits::WebVRMsg; |