diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-28 13:46:00 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-28 13:46:00 +0530 |
commit | b68b7e87c8a4729ca1e8c22e88bdb6581c940cb7 (patch) | |
tree | bee923d2b407057833f835c379a39dfa3f7a79cc | |
parent | e44ee70faff95763185a64544907a88466fa94a8 (diff) | |
download | servo-b68b7e87c8a4729ca1e8c22e88bdb6581c940cb7.tar.gz servo-b68b7e87c8a4729ca1e8c22e88bdb6581c940cb7.zip |
self import
28 files changed, 36 insertions, 36 deletions
diff --git a/components/devtools/actors/console.rs b/components/devtools/actors/console.rs index d8e88cdba8b..246357a4230 100644 --- a/components/devtools/actors/console.rs +++ b/components/devtools/actors/console.rs @@ -15,7 +15,7 @@ use servo_msg::constellation_msg::PipelineId; use collections::BTreeMap; use core::cell::RefCell; -use serialize::json::{mod, Json, ToJson}; +use serialize::json::{self, Json, ToJson}; use std::io::TcpStream; use std::num::Float; use std::sync::mpsc::{channel, Sender}; diff --git a/components/devtools/actors/inspector.rs b/components/devtools/actors/inspector.rs index 20611226edc..77ee81d1bce 100644 --- a/components/devtools/actors/inspector.rs +++ b/components/devtools/actors/inspector.rs @@ -12,7 +12,7 @@ use protocol::JsonPacketStream; use collections::BTreeMap; use servo_msg::constellation_msg::PipelineId; -use serialize::json::{mod, Json, ToJson}; +use serialize::json::{self, Json, ToJson}; use std::cell::RefCell; use std::io::TcpStream; use std::sync::mpsc::{channel, Sender}; diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs index 7bd8187728e..36dc2c6b1b8 100644 --- a/components/gfx/display_list/mod.rs +++ b/components/gfx/display_list/mod.rs @@ -25,7 +25,7 @@ use text::glyph::CharIndex; use text::TextRun; use azure::azure::AzFloat; -use collections::dlist::{mod, DList}; +use collections::dlist::{self, DList}; use geom::{Point2D, Rect, SideOffsets2D, Size2D, Matrix2D}; use geom::num::Zero; use libc::uintptr_t; @@ -34,7 +34,7 @@ use servo_msg::compositor_msg::LayerId; use servo_net::image::base::Image; use servo_util::cursor::Cursor; use servo_util::dlist as servo_dlist; -use servo_util::geometry::{mod, Au, MAX_RECT, ZERO_RECT}; +use servo_util::geometry::{self, Au, MAX_RECT, ZERO_RECT}; use servo_util::range::Range; use servo_util::smallvec::{SmallVec, SmallVec8}; use std::fmt; diff --git a/components/gfx/display_list/optimizer.rs b/components/gfx/display_list/optimizer.rs index dddf31c66d7..735cae422ba 100644 --- a/components/gfx/display_list/optimizer.rs +++ b/components/gfx/display_list/optimizer.rs @@ -8,7 +8,7 @@ use display_list::{DisplayItem, DisplayList, StackingContext}; use collections::dlist::DList; use geom::rect::Rect; -use servo_util::geometry::{mod, Au}; +use servo_util::geometry::{self, Au}; use std::sync::Arc; /// Transforms a display list to produce a visually-equivalent, but cheaper-to-paint, one. diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs index 95909f42e67..21eff70f32f 100644 --- a/components/gfx/paint_task.rs +++ b/components/gfx/paint_task.rs @@ -5,7 +5,7 @@ //! The task that handles all painting. use buffer_map::BufferMap; -use display_list::{mod, StackingContext}; +use display_list::{self, StackingContext}; use font_cache_task::FontCacheTask; use font_context::FontContext; use paint_context::PaintContext; diff --git a/components/layout/block.rs b/components/layout/block.rs index 60e56b3e1d7..d1ffc16a111 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -32,7 +32,7 @@ use context::LayoutContext; use css::node_style::StyledNode; use display_list_builder::{BlockFlowDisplayListBuilding, FragmentDisplayListBuilding}; use floats::{ClearType, FloatKind, Floats, PlacementInfo}; -use flow::{mod, AbsolutePositionInfo, BaseFlow, ForceNonfloatedFlag, FlowClass, Flow}; +use flow::{self, AbsolutePositionInfo, BaseFlow, ForceNonfloatedFlag, FlowClass, Flow}; use flow::{ImmutableFlowUtils, MutableFlowUtils, PreorderFlowTraversal}; use flow::{PostorderFlowTraversal, mut_base}; use flow::{HAS_LEFT_FLOATED_DESCENDANTS, HAS_RIGHT_FLOATED_DESCENDANTS}; diff --git a/components/layout/construct.rs b/components/layout/construct.rs index d67d1e44753..b877d4245f2 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -31,7 +31,7 @@ use fragment::TableColumnFragmentInfo; use fragment::UnscannedTextFragmentInfo; use incremental::{RECONSTRUCT_FLOW, RestyleDamage}; use inline::InlineFlow; -use list_item::{mod, ListItemFlow}; +use list_item::{self, ListItemFlow}; use parallel; use table_wrapper::TableWrapperFlow; use table::TableFlow; @@ -56,7 +56,7 @@ use std::mem; use std::sync::atomic::Ordering; use style::computed_values::{caption_side, display, empty_cells, float, list_style_position}; use style::computed_values::{position}; -use style::{mod, ComputedValues}; +use style::{self, ComputedValues}; use std::sync::Arc; use url::Url; diff --git a/components/layout/css/matching.rs b/components/layout/css/matching.rs index 2627c592882..0f1931c3efb 100644 --- a/components/layout/css/matching.rs +++ b/components/layout/css/matching.rs @@ -5,7 +5,7 @@ //! High-level interface to CSS selector matching. use css::node_style::StyledNode; -use incremental::{mod, RestyleDamage}; +use incremental::{self, RestyleDamage}; use util::{LayoutDataAccess, LayoutDataWrapper}; use wrapper::{LayoutElement, LayoutNode, TLayoutNode}; @@ -19,7 +19,7 @@ use std::mem; use std::hash::{Hash, Hasher, Writer}; use std::slice::Iter; use string_cache::{Atom, Namespace}; -use style::{mod, PseudoElement, ComputedValues, DeclarationBlock, Stylist, TElement, TNode}; +use style::{self, PseudoElement, ComputedValues, DeclarationBlock, Stylist, TElement, TNode}; use style::{CommonStyleAffectingAttributeMode, CommonStyleAffectingAttributes, cascade}; use std::sync::Arc; diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index b17355cd534..44d9a286bf2 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -13,7 +13,7 @@ use block::BlockFlow; use canvas::canvas_paint_task::CanvasMsg::SendPixelContents; use context::LayoutContext; -use flow::{mod, Flow, IS_ABSOLUTELY_POSITIONED, NEEDS_LAYER}; +use flow::{self, Flow, IS_ABSOLUTELY_POSITIONED, NEEDS_LAYER}; use fragment::{CoordinateSystem, Fragment, IframeFragmentInfo, ImageFragmentInfo}; use fragment::{ScannedTextFragmentInfo, SpecificFragmentInfo}; use inline::InlineFlow; @@ -40,7 +40,7 @@ use servo_msg::constellation_msg::Msg as ConstellationMsg; use servo_msg::constellation_msg::ConstellationChan; use servo_net::image::holder::ImageHolder; use servo_util::cursor::Cursor; -use servo_util::geometry::{mod, Au, to_px}; +use servo_util::geometry::{self, Au, to_px}; use servo_util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize}; use servo_util::opts; use std::default::Default; diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index c9bcb487821..21396838f0c 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -32,7 +32,7 @@ use serialize::{Encodable, Encoder}; use servo_msg::constellation_msg::{PipelineId, SubpageId}; use servo_net::image::holder::ImageHolder; use servo_net::local_image_cache::LocalImageCache; -use servo_util::geometry::{mod, Au, ZERO_POINT}; +use servo_util::geometry::{self, Au, ZERO_POINT}; use servo_util::logical_geometry::{LogicalRect, LogicalSize, LogicalMargin}; use servo_util::range::*; use servo_util::smallvec::SmallVec; diff --git a/components/layout/incremental.rs b/components/layout/incremental.rs index 2ce9df833c0..1b89015e6aa 100644 --- a/components/layout/incremental.rs +++ b/components/layout/incremental.rs @@ -2,7 +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 flow::{mod, Flow}; +use flow::{self, Flow}; use flow::{IS_ABSOLUTELY_POSITIONED}; use std::fmt; diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index acfd53d4e15..53491dfdc5e 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -8,12 +8,12 @@ use css::node_style::StyledNode; use construct::ConstructionResult; use context::{SharedLayoutContext, SharedLayoutContextWrapper}; -use flow::{mod, Flow, ImmutableFlowUtils, MutableFlowUtils, MutableOwnedFlowUtils}; +use flow::{self, Flow, ImmutableFlowUtils, MutableFlowUtils, MutableOwnedFlowUtils}; use flow_ref::FlowRef; use fragment::{Fragment, FragmentBorderBoxIterator}; use incremental::{LayoutDamageComputation, REFLOW, REFLOW_ENTIRE_DOCUMENT, REPAINT}; use layout_debug; -use parallel::{mod, UnsafeFlow}; +use parallel::{self, UnsafeFlow}; use sequential; use util::{LayoutDataAccess, LayoutDataWrapper, OpaqueNodeMethods, ToGfxColor}; use wrapper::{LayoutNode, TLayoutNode, ThreadSafeLayoutNode}; diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs index b91aad6a11c..ff2bd948c51 100644 --- a/components/layout/sequential.rs +++ b/components/layout/sequential.rs @@ -5,7 +5,7 @@ //! Implements sequential traversals over the DOM and flow trees. use context::{LayoutContext, SharedLayoutContext}; -use flow::{mod, Flow, ImmutableFlowUtils, MutableFlowUtils, PostorderFlowTraversal}; +use flow::{self, Flow, ImmutableFlowUtils, MutableFlowUtils, PostorderFlowTraversal}; use flow::{PreorderFlowTraversal}; use flow_ref::FlowRef; use fragment::FragmentBorderBoxIterator; diff --git a/components/layout/table.rs b/components/layout/table.rs index a67636a31b8..533d5166dbd 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -11,7 +11,7 @@ use block::{ISizeConstraintInput, ISizeConstraintSolution}; use construct::FlowConstructor; use context::LayoutContext; use floats::FloatKind; -use flow::{mod, Flow, FlowClass, IMPACTED_BY_LEFT_FLOATS, IMPACTED_BY_RIGHT_FLOATS}; +use flow::{self, Flow, FlowClass, IMPACTED_BY_LEFT_FLOATS, IMPACTED_BY_RIGHT_FLOATS}; use flow::ImmutableFlowUtils; use fragment::{Fragment, FragmentBorderBoxIterator}; use layout_debug; diff --git a/components/layout/text.rs b/components/layout/text.rs index fbc84dc1624..ca23fdc12de 100644 --- a/components/layout/text.rs +++ b/components/layout/text.rs @@ -14,7 +14,7 @@ use gfx::font::{RunMetrics, ShapingFlags, ShapingOptions}; use gfx::font_context::FontContext; use gfx::text::glyph::CharIndex; use gfx::text::text_run::TextRun; -use gfx::text::util::{mod, CompressionMode}; +use gfx::text::util::{self, CompressionMode}; use servo_util::dlist; use servo_util::geometry::Au; use servo_util::logical_geometry::{LogicalSize, WritingMode}; diff --git a/components/script/cors.rs b/components/script/cors.rs index a770a90e69f..ebc2af7ec76 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -10,7 +10,7 @@ //! with CORSRequest being expanded into FetchRequest (etc) use std::ascii::AsciiExt; -use std::fmt::{mod, Show}; +use std::fmt::{self, Show}; use std::str::from_utf8; use time; use time::{now, Timespec}; diff --git a/components/script/dom/cssstyledeclaration.rs b/components/script/dom/cssstyledeclaration.rs index 2e438721b6c..81dd6aeeebe 100644 --- a/components/script/dom/cssstyledeclaration.rs +++ b/components/script/dom/cssstyledeclaration.rs @@ -2,7 +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 dom::bindings::codegen::Bindings::CSSStyleDeclarationBinding::{mod, CSSStyleDeclarationMethods}; +use dom::bindings::codegen::Bindings::CSSStyleDeclarationBinding::{self, CSSStyleDeclarationMethods}; use dom::bindings::codegen::InheritTypes::{NodeCast, ElementCast}; use dom::bindings::error::Error; use dom::bindings::error::ErrorResult; diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index d7ebd75f579..0bd5bbe9bad 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -50,7 +50,7 @@ use dom::node::{window_from_node}; use dom::nodelist::NodeList; use dom::virtualmethods::{VirtualMethods, vtable_for}; use devtools_traits::AttrInfo; -use style::{mod, SimpleColorAttribute, UnsignedIntegerAttribute}; +use style::{self, SimpleColorAttribute, UnsignedIntegerAttribute}; use style::{IntegerAttribute, LengthAttribute, matches}; use servo_util::namespace; use servo_util::str::{DOMString, LengthOrPercentageOrAuto}; diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index c398d605abd..6126af2c56f 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -4,7 +4,7 @@ use dom::attr::{Attr, AttrHelpers}; use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull; -use dom::bindings::codegen::Bindings::HTMLBodyElementBinding::{mod, HTMLBodyElementMethods}; +use dom::bindings::codegen::Bindings::HTMLBodyElementBinding::{self, HTMLBodyElementMethods}; use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods; use dom::bindings::codegen::InheritTypes::EventTargetCast; use dom::bindings::codegen::InheritTypes::{HTMLBodyElementDerived, HTMLElementCast}; @@ -18,7 +18,7 @@ use dom::node::{Node, NodeTypeId, window_from_node}; use dom::virtualmethods::VirtualMethods; use cssparser::RGBA; -use servo_util::str::{mod, DOMString}; +use servo_util::str::{self, DOMString}; use std::borrow::ToOwned; use std::cell::Cell; diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs index 9bb04740c58..d5e14f5cafb 100644 --- a/components/script/dom/htmltablecellelement.rs +++ b/components/script/dom/htmltablecellelement.rs @@ -13,7 +13,7 @@ use dom::node::NodeTypeId; use dom::virtualmethods::VirtualMethods; use cssparser::RGBA; -use servo_util::str::{mod, DOMString, LengthOrPercentageOrAuto}; +use servo_util::str::{self, DOMString, LengthOrPercentageOrAuto}; use std::cell::Cell; #[derive(Copy, PartialEq, Show)] diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs index 46e23a9665a..e16f51d2e8c 100644 --- a/components/script/dom/htmltableelement.rs +++ b/components/script/dom/htmltableelement.rs @@ -18,7 +18,7 @@ use dom::node::{Node, NodeHelpers, NodeTypeId}; use dom::virtualmethods::VirtualMethods; use cssparser::RGBA; -use servo_util::str::{mod, DOMString, LengthOrPercentageOrAuto}; +use servo_util::str::{self, DOMString, LengthOrPercentageOrAuto}; use std::cell::Cell; #[dom_struct] diff --git a/components/script/dom/htmltablerowelement.rs b/components/script/dom/htmltablerowelement.rs index a24fb8f3317..77404ca19e4 100644 --- a/components/script/dom/htmltablerowelement.rs +++ b/components/script/dom/htmltablerowelement.rs @@ -14,7 +14,7 @@ use dom::node::{Node, NodeTypeId}; use dom::virtualmethods::VirtualMethods; use cssparser::RGBA; -use servo_util::str::{mod, DOMString}; +use servo_util::str::{self, DOMString}; use std::cell::Cell; #[dom_struct] diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs index a061ae97222..70744c5bd9e 100644 --- a/components/script/dom/htmltablesectionelement.rs +++ b/components/script/dom/htmltablesectionelement.rs @@ -14,7 +14,7 @@ use dom::node::{Node, NodeTypeId}; use dom::virtualmethods::VirtualMethods; use cssparser::RGBA; -use servo_util::str::{mod, DOMString}; +use servo_util::str::{self, DOMString}; use std::cell::Cell; #[dom_struct] diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 2128b0f93f4..405d950b7f4 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -60,7 +60,7 @@ use std::cell::{Cell, RefCell, Ref, RefMut}; use std::default::Default; use std::iter::{FilterMap, Peekable}; use std::mem; -use style::{mod, ComputedValues}; +use style::{self, ComputedValues}; use std::sync::Arc; use uuid; use string_cache::QualName; diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index f1d061bcdb7..62a42ec3cf6 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -36,7 +36,7 @@ use hyper::header::Headers; use hyper::header::common::{Accept, ContentLength, ContentType}; use hyper::header::quality_item::QualityItem; use hyper::http::RawStatus; -use hyper::mime::{mod, Mime}; +use hyper::mime::{self, Mime}; use hyper::method::Method; use js::jsapi::{JS_ParseJSON, JSContext}; diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 3c1771a8b2d..e41d069094a 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -30,7 +30,7 @@ use dom::eventtarget::{EventTarget, EventTargetHelpers}; use dom::htmlelement::HTMLElementTypeId; use dom::keyboardevent::KeyboardEvent; use dom::mouseevent::MouseEvent; -use dom::node::{mod, Node, NodeHelpers, NodeDamage, NodeTypeId}; +use dom::node::{self, Node, NodeHelpers, NodeDamage, NodeTypeId}; use dom::window::{Window, WindowHelpers, ScriptHelpers}; use parse::html::{HTMLInput, parse_html}; use layout_interface::{ScriptLayoutChan, LayoutChan, ReflowGoal, ReflowQueryType}; @@ -81,7 +81,7 @@ use libc; use std::any::Any; use std::borrow::ToOwned; use std::cell::Cell; -use std::fmt::{mod, Show}; +use std::fmt::{self, Show}; use std::mem::replace; use std::num::ToPrimitive; use std::rc::Rc; diff --git a/components/style/values.rs b/components/style/values.rs index dae0c015a59..73a563aebbb 100644 --- a/components/style/values.rs +++ b/components/style/values.rs @@ -53,9 +53,9 @@ pub mod specified { use std::fmt; use std::fmt::{Formatter, Show}; use url::Url; - use cssparser::{mod, Token, Parser, ToCss, CssStringWriter}; + use cssparser::{self, Token, Parser, ToCss, CssStringWriter}; use parser::ParserContext; - use text_writer::{mod, TextWriter}; + use text_writer::{self, TextWriter}; use servo_util::geometry::Au; use super::CSSFloat; use super::computed; diff --git a/components/util/str.rs b/components/util/str.rs index 352876919d4..e0642abdffe 100644 --- a/components/util/str.rs +++ b/components/util/str.rs @@ -4,7 +4,7 @@ use geometry::Au; -use cssparser::{mod, RGBA, Color}; +use cssparser::{self, RGBA, Color}; use libc::c_char; use std::ascii::AsciiExt; |