diff options
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/domrect.rs | 2 | ||||
-rw-r--r-- | components/script/dom/element.rs | 2 | ||||
-rw-r--r-- | components/script/dom/node.rs | 2 | ||||
-rw-r--r-- | components/script/dom/window.rs | 3 |
4 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs index b2b701e8fc1..6706642b5c5 100644 --- a/components/script/dom/domrect.rs +++ b/components/script/dom/domrect.rs @@ -2,6 +2,7 @@ * 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 app_units::Au; use dom::bindings::codegen::Bindings::DOMRectBinding; use dom::bindings::codegen::Bindings::DOMRectBinding::DOMRectMethods; use dom::bindings::global::GlobalRef; @@ -9,7 +10,6 @@ use dom::bindings::js::Root; use dom::bindings::num::Finite; use dom::bindings::utils::{Reflector, reflect_dom_object}; use dom::window::Window; -use util::geometry::Au; #[dom_struct] pub struct DOMRect { diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index c275ebfd5df..f99bd564dbe 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -4,6 +4,7 @@ //! Element nodes. +use app_units::Au; use cssparser::Color; use devtools_traits::AttrInfo; use dom::activation::Activatable; @@ -75,7 +76,6 @@ use style::properties::{PropertyDeclaration, PropertyDeclarationBlock, parse_sty use style::values::CSSFloat; use style::values::specified::{self, CSSColor, CSSRGBA}; use url::UrlParser; -use util::geometry::Au; use util::str::{DOMString, LengthOrPercentageOrAuto}; #[dom_struct] diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index d679fb12da6..7f131baf52f 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -4,6 +4,7 @@ //! The core DOM types. Defines the basic DOM hierarchy as well as all the HTML elements. +use app_units::Au; use core::nonzero::NonZero; use devtools_traits::NodeInfo; use document_loader::DocumentLoader; @@ -64,7 +65,6 @@ use std::slice::ref_slice; use std::sync::Arc; use string_cache::{Atom, Namespace, QualName}; use style::properties::ComputedValues; -use util::geometry::Au; use util::str::DOMString; use util::task_state; use uuid; diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 4cec46c7814..21b26a529b2 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -2,6 +2,7 @@ * 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 app_units::Au; use devtools_traits::{ScriptToDevtoolsControlMsg, TimelineMarker, TimelineMarkerType}; use dom::bindings::callback::ExceptionHandling; use dom::bindings::cell::DOMRefCell; @@ -72,7 +73,7 @@ use string_cache::Atom; use time; use timers::{IsInterval, TimerCallback, TimerId, TimerManager}; use url::Url; -use util::geometry::{self, Au, MAX_RECT}; +use util::geometry::{self, MAX_RECT}; use util::str::{DOMString, HTML_SPACE_CHARACTERS}; use util::{breakpoint, opts}; use webdriver_handlers::jsval_to_webdriver; |