diff options
author | Johann Tuffe <tafia973@gmail.com> | 2015-08-20 20:47:12 +0800 |
---|---|---|
committer | Johann Tuffe <tafia973@gmail.com> | 2015-08-20 20:47:12 +0800 |
commit | ec07178b6fc5a0ab559eb191952101cf92b5d666 (patch) | |
tree | f7550ec6d7623b57b29d3030686f4fdb609f0b36 /components/script/dom/bindings/utils.rs | |
parent | d3c7e31722fb194f1a266eec9ae57d2f2557e7a6 (diff) | |
download | servo-ec07178b6fc5a0ab559eb191952101cf92b5d666.tar.gz servo-ec07178b6fc5a0ab559eb191952101cf92b5d666.zip |
sort all uses
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 9f458f83c2e..d7912ae9af4 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -6,11 +6,11 @@ use dom::bindings::codegen::PrototypeList; use dom::bindings::codegen::PrototypeList::MAX_PROTO_CHAIN_LENGTH; -use dom::bindings::conversions::{is_dom_class, jsstring_to_str}; use dom::bindings::conversions::native_from_handleobject; use dom::bindings::conversions::private_from_proto_chain; -use dom::bindings::error::{Error, ErrorResult, Fallible, throw_invalid_this}; +use dom::bindings::conversions::{is_dom_class, jsstring_to_str}; use dom::bindings::error::throw_type_error; +use dom::bindings::error::{Error, ErrorResult, Fallible, throw_invalid_this}; use dom::bindings::global::GlobalRef; use dom::bindings::js::Root; use dom::bindings::trace::trace_object; @@ -19,46 +19,46 @@ use dom::window; use util::mem::HeapSizeOf; use util::str::DOMString; -use libc; -use libc::c_uint; -use std::ffi::CString; -use std::ptr; -use std::cmp::PartialEq; -use std::default::Default; -use std::cell::UnsafeCell; +use js; use js::glue::{CallJitMethodOp, CallJitGetterOp, CallJitSetterOp, IsWrapper}; use js::glue::{RUST_FUNCTION_VALUE_TO_JITINFO, RUST_JSID_IS_INT}; use js::glue::{RUST_JSID_TO_INT, UnwrapObject}; -use js::jsapi::{CallArgs, GetGlobalForObjectCrossCompartment, JSJitInfo}; +use js::glue::{WrapperNew, GetCrossCompartmentWrapper}; +use js::jsapi::JSAutoCompartment; +use js::jsapi::JS_DeletePropertyById1; +use js::jsapi::JS_GetFunctionObject; use js::jsapi::JS_IsExceptionPending; +use js::jsapi::JS_NewObjectWithUniqueType; +use js::jsapi::JS_ObjectToOuterObject; +use js::jsapi::PropertyDefinitionBehavior; +use js::jsapi::{CallArgs, GetGlobalForObjectCrossCompartment, JSJitInfo}; +use js::jsapi::{DOMCallbacks, JSWrapObjectCallbacks}; +use js::jsapi::{HandleObject, HandleId, HandleValue, MutableHandleValue}; +use js::jsapi::{JSContext, JSObject, JSClass, JSTracer}; +use js::jsapi::{JSFunctionSpec, JSPropertySpec}; use js::jsapi::{JS_AlreadyHasOwnProperty, JS_NewFunction, JSTraceOp}; +use js::jsapi::{JS_DefineFunctions, JS_DefineProperty, JS_DefineProperty1}; use js::jsapi::{JS_DefineProperties, JS_ForwardGetPropertyTo}; +use js::jsapi::{JS_FireOnNewGlobalObject, JSVersion}; use js::jsapi::{JS_GetClass, JS_LinkConstructorAndPrototype}; -use js::jsapi::{HandleObject, HandleId, HandleValue, MutableHandleValue}; -use js::jsapi::JS_GetFunctionObject; -use js::jsapi::{JS_HasPropertyById, JS_GetPrototype}; use js::jsapi::{JS_GetProperty, JS_HasProperty, JS_SetProperty}; -use js::jsapi::{JS_DefineFunctions, JS_DefineProperty, JS_DefineProperty1}; use js::jsapi::{JS_GetReservedSlot, JS_SetReservedSlot}; -use js::jsapi::{JSContext, JSObject, JSClass, JSTracer}; -use js::jsapi::{JSFunctionSpec, JSPropertySpec}; +use js::jsapi::{JS_HasPropertyById, JS_GetPrototype}; use js::jsapi::{JS_NewGlobalObject, JS_InitStandardClasses}; -use js::jsapi::{OnNewGlobalHookOption, CompartmentOptions}; -use js::jsapi::{JS_FireOnNewGlobalObject, JSVersion}; -use js::jsapi::JS_DeletePropertyById1; -use js::jsapi::JS_ObjectToOuterObject; -use js::jsapi::JS_NewObjectWithUniqueType; use js::jsapi::{ObjectOpResult, RootedObject, RootedValue, Heap, MutableHandleObject}; -use js::jsapi::PropertyDefinitionBehavior; -use js::jsapi::JSAutoCompartment; -use js::jsapi::{DOMCallbacks, JSWrapObjectCallbacks}; +use js::jsapi::{OnNewGlobalHookOption, CompartmentOptions}; use js::jsval::{BooleanValue, DoubleValue, Int32Value, JSVal, NullValue}; use js::jsval::{PrivateValue, UInt32Value, UndefinedValue}; use js::rust::{GCMethods, ToString}; -use js::glue::{WrapperNew, GetCrossCompartmentWrapper}; -use js::{JS_CALLEE, JSFUN_CONSTRUCTOR, JSPROP_ENUMERATE}; use js::{JSPROP_PERMANENT, JSPROP_READONLY}; -use js; +use js::{JS_CALLEE, JSFUN_CONSTRUCTOR, JSPROP_ENUMERATE}; +use libc; +use libc::c_uint; +use std::cell::UnsafeCell; +use std::cmp::PartialEq; +use std::default::Default; +use std::ffi::CString; +use std::ptr; use string_cache::{Atom, Namespace}; /// Proxy handler for a WindowProxy. |