diff options
Diffstat (limited to 'components/script/dom/history.rs')
-rw-r--r-- | components/script/dom/history.rs | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/components/script/dom/history.rs b/components/script/dom/history.rs index f527d38a915..dcb00c9430e 100644 --- a/components/script/dom/history.rs +++ b/components/script/dom/history.rs @@ -2,6 +2,19 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +use std::cell::Cell; + +use dom_struct::dom_struct; +use js::jsapi::Heap; +use js::jsval::{JSVal, NullValue, UndefinedValue}; +use js::rust::HandleValue; +use msg::constellation_msg::{HistoryStateId, TraversalDirection}; +use net_traits::{CoreResourceMsg, IpcSend}; +use profile_traits::ipc; +use profile_traits::ipc::channel; +use script_traits::{ScriptMsg, StructuredSerializedData}; +use servo_url::ServoUrl; + use crate::dom::bindings::codegen::Bindings::HistoryBinding::HistoryMethods; use crate::dom::bindings::codegen::Bindings::LocationBinding::LocationBinding::LocationMethods; use crate::dom::bindings::codegen::Bindings::WindowBinding::WindowMethods; @@ -18,17 +31,6 @@ use crate::dom::hashchangeevent::HashChangeEvent; use crate::dom::popstateevent::PopStateEvent; use crate::dom::window::Window; use crate::script_runtime::JSContext; -use dom_struct::dom_struct; -use js::jsapi::Heap; -use js::jsval::{JSVal, NullValue, UndefinedValue}; -use js::rust::HandleValue; -use msg::constellation_msg::{HistoryStateId, TraversalDirection}; -use net_traits::{CoreResourceMsg, IpcSend}; -use profile_traits::ipc; -use profile_traits::ipc::channel; -use script_traits::{ScriptMsg, StructuredSerializedData}; -use servo_url::ServoUrl; -use std::cell::Cell; enum PushOrReplace { Push, |