From 37b5782606256a4792b56e0bd503cd548e907665 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 10 Feb 2015 03:51:46 -0700 Subject: [PATCH] servo: Merge #4886 - Import msg as msg rather than servo_msg (from Ms2ger:servo_msg); r=saneyuki Source-Repo: https://github.com/servo/servo Source-Revision: 29d3b872de4abb693b75e71fc0b987c52b0fd1f6 --- servo/components/compositing/compositor.rs | 12 ++++++------ servo/components/compositing/compositor_layer.rs | 4 ++-- servo/components/compositing/compositor_task.rs | 8 ++++---- servo/components/compositing/constellation.rs | 16 ++++++++-------- servo/components/compositing/headless.rs | 4 ++-- servo/components/compositing/lib.rs | 2 +- servo/components/compositing/pipeline.rs | 6 +++--- servo/components/compositing/windowing.rs | 4 ++-- servo/components/devtools/actors/console.rs | 2 +- servo/components/devtools/actors/inspector.rs | 2 +- servo/components/devtools/lib.rs | 4 ++-- servo/components/devtools_traits/lib.rs | 4 ++-- servo/components/gfx/display_list/mod.rs | 2 +- servo/components/gfx/lib.rs | 2 +- servo/components/gfx/paint_task.rs | 10 +++++----- servo/components/layout/block.rs | 2 +- servo/components/layout/context.rs | 2 +- servo/components/layout/display_list_builder.rs | 6 +++--- servo/components/layout/flow.rs | 2 +- servo/components/layout/fragment.rs | 2 +- servo/components/layout/layout_task.rs | 6 +++--- servo/components/layout/lib.rs | 2 +- servo/components/layout/wrapper.rs | 2 +- servo/components/layout_traits/lib.rs | 4 ++-- servo/components/script/devtools.rs | 2 +- servo/components/script/dom/bindings/trace.rs | 4 ++-- servo/components/script/dom/htmlformelement.rs | 2 +- servo/components/script/dom/htmliframeelement.rs | 6 +++--- servo/components/script/dom/keyboardevent.rs | 2 +- servo/components/script/dom/window.rs | 4 ++-- servo/components/script/layout_interface.rs | 2 +- servo/components/script/lib.rs | 1 - servo/components/script/page.rs | 6 +++--- servo/components/script/script_task.rs | 16 ++++++++-------- servo/components/script_traits/lib.rs | 10 +++++----- servo/components/servo/lib.rs | 6 +++--- servo/ports/cef/browser_host.rs | 2 +- servo/ports/cef/lib.rs | 2 +- servo/ports/cef/window.rs | 6 +++--- servo/ports/gonk/src/lib.rs | 6 +++--- 40 files changed, 93 insertions(+), 94 deletions(-) diff --git a/servo/components/compositing/compositor.rs b/servo/components/compositing/compositor.rs index 7ece8277d619..0d1596eef5e2 100644 --- a/servo/components/compositing/compositor.rs +++ b/servo/components/compositing/compositor.rs @@ -29,12 +29,12 @@ use png; use gleam::gl::types::{GLint, GLsizei}; use gleam::gl; use script_traits::{ConstellationControlMsg, ScriptControlChan}; -use servo_msg::compositor_msg::{Epoch, LayerId}; -use servo_msg::compositor_msg::{ReadyState, PaintState, ScrollPolicy}; -use servo_msg::constellation_msg::{ConstellationChan, NavigationDirection}; -use servo_msg::constellation_msg::Msg as ConstellationMsg; -use servo_msg::constellation_msg::{Key, KeyModifiers, KeyState, LoadData}; -use servo_msg::constellation_msg::{PipelineId, WindowSizeData}; +use msg::compositor_msg::{Epoch, LayerId}; +use msg::compositor_msg::{ReadyState, PaintState, ScrollPolicy}; +use msg::constellation_msg::{ConstellationChan, NavigationDirection}; +use msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::{Key, KeyModifiers, KeyState, LoadData}; +use msg::constellation_msg::{PipelineId, WindowSizeData}; use util::geometry::{PagePx, ScreenPx, ViewportPx}; use util::memory::MemoryProfilerChan; use util::opts; diff --git a/servo/components/compositing/compositor_layer.rs b/servo/components/compositing/compositor_layer.rs index d9f5ba21ca20..2f5a90594237 100644 --- a/servo/components/compositing/compositor_layer.rs +++ b/servo/components/compositing/compositor_layer.rs @@ -18,8 +18,8 @@ use layers::geometry::LayerPixel; use layers::layers::{Layer, LayerBufferSet}; use script_traits::CompositorEvent::{ClickEvent, MouseDownEvent, MouseMoveEvent, MouseUpEvent}; use script_traits::{ScriptControlChan, ConstellationControlMsg}; -use servo_msg::compositor_msg::{Epoch, LayerId, ScrollPolicy}; -use servo_msg::constellation_msg::PipelineId; +use msg::compositor_msg::{Epoch, LayerId, ScrollPolicy}; +use msg::constellation_msg::PipelineId; use std::num::Float; use std::rc::Rc; diff --git a/servo/components/compositing/compositor_task.rs b/servo/components/compositing/compositor_task.rs index e2f21d0910ec..634e87a140ff 100644 --- a/servo/components/compositing/compositor_task.rs +++ b/servo/components/compositing/compositor_task.rs @@ -18,10 +18,10 @@ use geom::size::Size2D; use layers::platform::surface::{NativeCompositingGraphicsContext, NativeGraphicsMetadata}; use layers::layers::LayerBufferSet; use pipeline::CompositionPipeline; -use servo_msg::compositor_msg::{Epoch, LayerId, LayerMetadata, ReadyState}; -use servo_msg::compositor_msg::{PaintListener, PaintState, ScriptListener, ScrollPolicy}; -use servo_msg::constellation_msg::{ConstellationChan, LoadData, PipelineId}; -use servo_msg::constellation_msg::{Key, KeyState, KeyModifiers}; +use msg::compositor_msg::{Epoch, LayerId, LayerMetadata, ReadyState}; +use msg::compositor_msg::{PaintListener, PaintState, ScriptListener, ScrollPolicy}; +use msg::constellation_msg::{ConstellationChan, LoadData, PipelineId}; +use msg::constellation_msg::{Key, KeyState, KeyModifiers}; use util::cursor::Cursor; use util::geometry::PagePx; use util::memory::MemoryProfilerChan; diff --git a/servo/components/compositing/constellation.rs b/servo/components/compositing/constellation.rs index 31da0929b1ad..f93b90971097 100644 --- a/servo/components/compositing/constellation.rs +++ b/servo/components/compositing/constellation.rs @@ -16,14 +16,14 @@ use layout_traits::LayoutTaskFactory; use libc; use script_traits::{CompositorEvent, ConstellationControlMsg}; use script_traits::{ScriptControlChan, ScriptTaskFactory}; -use servo_msg::compositor_msg::LayerId; -use servo_msg::constellation_msg::{self, ConstellationChan, Failure}; -use servo_msg::constellation_msg::{IFrameSandboxState, NavigationDirection}; -use servo_msg::constellation_msg::{Key, KeyState, KeyModifiers}; -use servo_msg::constellation_msg::{LoadData, NavigationType}; -use servo_msg::constellation_msg::{PipelineExitType, PipelineId}; -use servo_msg::constellation_msg::{SubpageId, WindowSizeData}; -use servo_msg::constellation_msg::Msg as ConstellationMsg; +use msg::compositor_msg::LayerId; +use msg::constellation_msg::{self, ConstellationChan, Failure}; +use msg::constellation_msg::{IFrameSandboxState, NavigationDirection}; +use msg::constellation_msg::{Key, KeyState, KeyModifiers}; +use msg::constellation_msg::{LoadData, NavigationType}; +use msg::constellation_msg::{PipelineExitType, PipelineId}; +use msg::constellation_msg::{SubpageId, WindowSizeData}; +use msg::constellation_msg::Msg as ConstellationMsg; use servo_net::image_cache_task::{ImageCacheTask, ImageCacheTaskClient}; use servo_net::resource_task::ResourceTask; use servo_net::resource_task; diff --git a/servo/components/compositing/headless.rs b/servo/components/compositing/headless.rs index d374cb28e54c..3c57b0e3b823 100644 --- a/servo/components/compositing/headless.rs +++ b/servo/components/compositing/headless.rs @@ -7,8 +7,8 @@ use windowing::WindowEvent; use geom::scale_factor::ScaleFactor; use geom::size::TypedSize2D; -use servo_msg::constellation_msg::Msg as ConstellationMsg; -use servo_msg::constellation_msg::{ConstellationChan, WindowSizeData}; +use msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::{ConstellationChan, WindowSizeData}; use util::memory::MemoryProfilerChan; use util::memory; use util::time::TimeProfilerChan; diff --git a/servo/components/compositing/lib.rs b/servo/components/compositing/lib.rs index 206fbf185ca7..5ec23894bd2b 100644 --- a/servo/components/compositing/lib.rs +++ b/servo/components/compositing/lib.rs @@ -19,7 +19,7 @@ extern crate layers; extern crate layout_traits; extern crate png; extern crate script_traits; -extern crate "msg" as servo_msg; +extern crate msg; extern crate "net" as servo_net; #[macro_use] extern crate util; diff --git a/servo/components/compositing/pipeline.rs b/servo/components/compositing/pipeline.rs index 73881b0206c4..e1043f5b5012 100644 --- a/servo/components/compositing/pipeline.rs +++ b/servo/components/compositing/pipeline.rs @@ -10,10 +10,10 @@ use script_traits::{NewLayoutInfo, ConstellationControlMsg}; use devtools_traits::DevtoolsControlChan; use gfx::paint_task::Msg as PaintMsg; use gfx::paint_task::{PaintChan, PaintTask}; -use servo_msg::constellation_msg::{ConstellationChan, Failure, PipelineId, SubpageId}; -use servo_msg::constellation_msg::{LoadData, WindowSizeData, PipelineExitType}; -use servo_net::image_cache_task::ImageCacheTask; use gfx::font_cache_task::FontCacheTask; +use msg::constellation_msg::{ConstellationChan, Failure, PipelineId, SubpageId}; +use msg::constellation_msg::{LoadData, WindowSizeData, PipelineExitType}; +use servo_net::image_cache_task::ImageCacheTask; use servo_net::resource_task::ResourceTask; use servo_net::storage_task::StorageTask; use util::time::TimeProfilerChan; diff --git a/servo/components/compositing/windowing.rs b/servo/components/compositing/windowing.rs index 0c5e6c00ed37..7a3e4b559e3e 100644 --- a/servo/components/compositing/windowing.rs +++ b/servo/components/compositing/windowing.rs @@ -11,8 +11,8 @@ use geom::scale_factor::ScaleFactor; use geom::size::TypedSize2D; use layers::geometry::DevicePixel; use layers::platform::surface::NativeGraphicsMetadata; -use servo_msg::compositor_msg::{PaintState, ReadyState}; -use servo_msg::constellation_msg::{Key, KeyState, KeyModifiers, LoadData}; +use msg::compositor_msg::{PaintState, ReadyState}; +use msg::constellation_msg::{Key, KeyState, KeyModifiers, LoadData}; use util::cursor::Cursor; use util::geometry::ScreenPx; use std::fmt::{Error, Formatter, Show}; diff --git a/servo/components/devtools/actors/console.rs b/servo/components/devtools/actors/console.rs index 246357a42305..aedc70aaa583 100644 --- a/servo/components/devtools/actors/console.rs +++ b/servo/components/devtools/actors/console.rs @@ -11,7 +11,7 @@ use protocol::JsonPacketStream; use devtools_traits::{EvaluateJS, NullValue, VoidValue, NumberValue, StringValue, BooleanValue}; use devtools_traits::{ActorValue, DevtoolScriptControlMsg}; -use servo_msg::constellation_msg::PipelineId; +use msg::constellation_msg::PipelineId; use collections::BTreeMap; use core::cell::RefCell; diff --git a/servo/components/devtools/actors/inspector.rs b/servo/components/devtools/actors/inspector.rs index 77ee81d1bcef..61d64efbd78a 100644 --- a/servo/components/devtools/actors/inspector.rs +++ b/servo/components/devtools/actors/inspector.rs @@ -11,7 +11,7 @@ use actor::{Actor, ActorRegistry}; use protocol::JsonPacketStream; use collections::BTreeMap; -use servo_msg::constellation_msg::PipelineId; +use msg::constellation_msg::PipelineId; use serialize::json::{self, Json, ToJson}; use std::cell::RefCell; use std::io::TcpStream; diff --git a/servo/components/devtools/lib.rs b/servo/components/devtools/lib.rs index 20f58fd066a7..6cb8a0747ed1 100644 --- a/servo/components/devtools/lib.rs +++ b/servo/components/devtools/lib.rs @@ -24,7 +24,7 @@ extern crate core; extern crate devtools_traits; extern crate "serialize" as rustc_serialize; extern crate serialize; -extern crate "msg" as servo_msg; +extern crate msg; extern crate time; extern crate util; @@ -37,7 +37,7 @@ use protocol::JsonPacketStream; use devtools_traits::{ServerExitMsg, DevtoolsControlMsg, NewGlobal, DevtoolScriptControlMsg}; use devtools_traits::{DevtoolsPageInfo, SendConsoleMessage, ConsoleMessage}; -use servo_msg::constellation_msg::PipelineId; +use msg::constellation_msg::PipelineId; use util::task::spawn_named; use std::borrow::ToOwned; diff --git a/servo/components/devtools_traits/lib.rs b/servo/components/devtools_traits/lib.rs index 7ad368e2cd11..8a76012099dd 100644 --- a/servo/components/devtools_traits/lib.rs +++ b/servo/components/devtools_traits/lib.rs @@ -15,7 +15,7 @@ #![allow(missing_copy_implementations)] #![allow(unstable)] -extern crate "msg" as servo_msg; +extern crate msg; extern crate serialize; extern crate url; extern crate util; @@ -25,7 +25,7 @@ pub use self::DevtoolScriptControlMsg::*; pub use self::EvaluateJSReply::*; use serialize::{Decodable, Decoder}; -use servo_msg::constellation_msg::PipelineId; +use msg::constellation_msg::PipelineId; use util::str::DOMString; use url::Url; diff --git a/servo/components/gfx/display_list/mod.rs b/servo/components/gfx/display_list/mod.rs index b54d7a553b58..8454dc168106 100644 --- a/servo/components/gfx/display_list/mod.rs +++ b/servo/components/gfx/display_list/mod.rs @@ -30,7 +30,7 @@ use geom::{Point2D, Rect, SideOffsets2D, Size2D, Matrix2D}; use geom::num::Zero; use libc::uintptr_t; use paint_task::PaintLayer; -use servo_msg::compositor_msg::LayerId; +use msg::compositor_msg::LayerId; use servo_net::image::base::Image; use util::cursor::Cursor; use util::dlist as servo_dlist; diff --git a/servo/components/gfx/lib.rs b/servo/components/gfx/lib.rs index 6985cb1d6b14..ae69e50dfbf2 100644 --- a/servo/components/gfx/lib.rs +++ b/servo/components/gfx/lib.rs @@ -25,7 +25,7 @@ extern crate "plugins" as servo_plugins; extern crate "net" as servo_net; #[macro_use] extern crate util; -extern crate "msg" as servo_msg; +extern crate msg; extern crate style; extern crate skia; extern crate time; diff --git a/servo/components/gfx/paint_task.rs b/servo/components/gfx/paint_task.rs index 9331b4ce53e6..772bb5031f49 100644 --- a/servo/components/gfx/paint_task.rs +++ b/servo/components/gfx/paint_task.rs @@ -20,11 +20,11 @@ use layers::platform::surface::{NativeGraphicsMetadata, NativePaintingGraphicsCo use layers::platform::surface::NativeSurface; use layers::layers::{BufferRequest, LayerBuffer, LayerBufferSet}; use layers; -use servo_msg::compositor_msg::{Epoch, PaintState, LayerId}; -use servo_msg::compositor_msg::{LayerMetadata, PaintListener, ScrollPolicy}; -use servo_msg::constellation_msg::Msg as ConstellationMsg; -use servo_msg::constellation_msg::{ConstellationChan, Failure, PipelineId}; -use servo_msg::constellation_msg::PipelineExitType; +use msg::compositor_msg::{Epoch, PaintState, LayerId}; +use msg::compositor_msg::{LayerMetadata, PaintListener, ScrollPolicy}; +use msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::{ConstellationChan, Failure, PipelineId}; +use msg::constellation_msg::PipelineExitType; use skia::SkiaGrGLNativeContextRef; use util::geometry::{Au, ZERO_POINT}; use util::opts; diff --git a/servo/components/layout/block.rs b/servo/components/layout/block.rs index 167e3d99ddca..cb0fdc4a23a0 100644 --- a/servo/components/layout/block.rs +++ b/servo/components/layout/block.rs @@ -51,7 +51,7 @@ use wrapper::ThreadSafeLayoutNode; use geom::{Point2D, Rect, Size2D}; use gfx::display_list::{ClippingRegion, DisplayList}; use serialize::{Encoder, Encodable}; -use servo_msg::compositor_msg::LayerId; +use msg::compositor_msg::LayerId; use servo_util::geometry::{Au, MAX_AU}; use servo_util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize}; use servo_util::opts; diff --git a/servo/components/layout/context.rs b/servo/components/layout/context.rs index 96925bbc55a1..046ec18a4418 100644 --- a/servo/components/layout/context.rs +++ b/servo/components/layout/context.rs @@ -14,7 +14,7 @@ use gfx::font_context::FontContext; use gfx::font_cache_task::FontCacheTask; use script::layout_interface::LayoutChan; use script_traits::UntrustedNodeAddress; -use servo_msg::constellation_msg::ConstellationChan; +use msg::constellation_msg::ConstellationChan; use servo_net::local_image_cache::LocalImageCache; use servo_util::geometry::Au; use std::cell::Cell; diff --git a/servo/components/layout/display_list_builder.rs b/servo/components/layout/display_list_builder.rs index f8f7d3602c34..9510e0399515 100644 --- a/servo/components/layout/display_list_builder.rs +++ b/servo/components/layout/display_list_builder.rs @@ -35,9 +35,9 @@ use gfx::display_list::{StackingContext, TextDisplayItem}; use gfx::paint_task::PaintLayer; use png; use png::PixelsByColorType; -use servo_msg::compositor_msg::ScrollPolicy; -use servo_msg::constellation_msg::Msg as ConstellationMsg; -use servo_msg::constellation_msg::ConstellationChan; +use msg::compositor_msg::ScrollPolicy; +use msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::ConstellationChan; use servo_net::image::holder::ImageHolder; use servo_util::cursor::Cursor; use servo_util::geometry::{self, Au, to_px, to_frac_px}; diff --git a/servo/components/layout/flow.rs b/servo/components/layout/flow.rs index cb1658879cda..f5e43d7b26cb 100644 --- a/servo/components/layout/flow.rs +++ b/servo/components/layout/flow.rs @@ -49,7 +49,7 @@ use wrapper::ThreadSafeLayoutNode; use geom::{Point2D, Rect, Size2D}; use gfx::display_list::ClippingRegion; use serialize::{Encoder, Encodable}; -use servo_msg::compositor_msg::LayerId; +use msg::compositor_msg::LayerId; use servo_util::geometry::{Au, ZERO_RECT}; use servo_util::logical_geometry::{LogicalRect, LogicalSize, WritingMode}; use std::mem; diff --git a/servo/components/layout/fragment.rs b/servo/components/layout/fragment.rs index 06e824bb8de9..89ce3c1958a1 100644 --- a/servo/components/layout/fragment.rs +++ b/servo/components/layout/fragment.rs @@ -29,7 +29,7 @@ use gfx::text::glyph::CharIndex; use gfx::text::text_run::{TextRun, TextRunSlice}; use script_traits::UntrustedNodeAddress; use serialize::{Encodable, Encoder}; -use servo_msg::constellation_msg::{PipelineId, SubpageId}; +use msg::constellation_msg::{PipelineId, SubpageId}; use servo_net::image::holder::ImageHolder; use servo_net::local_image_cache::LocalImageCache; use servo_util::geometry::{self, Au, ZERO_POINT}; diff --git a/servo/components/layout/layout_task.rs b/servo/components/layout/layout_task.rs index c0aa1f6fdb99..e92f7ae9469c 100644 --- a/servo/components/layout/layout_task.rs +++ b/servo/components/layout/layout_task.rs @@ -45,9 +45,9 @@ use script::layout_interface::{MouseOverResponse, Msg}; use script::layout_interface::{Reflow, ReflowGoal, ScriptLayoutChan, TrustedNodeAddress}; use script_traits::{ConstellationControlMsg, CompositorEvent, OpaqueScriptLayoutChannel}; use script_traits::{ScriptControlChan, UntrustedNodeAddress}; -use servo_msg::compositor_msg::ScrollPolicy; -use servo_msg::constellation_msg::Msg as ConstellationMsg; -use servo_msg::constellation_msg::{ConstellationChan, Failure, PipelineExitType, PipelineId}; +use msg::compositor_msg::ScrollPolicy; +use msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::{ConstellationChan, Failure, PipelineExitType, PipelineId}; use servo_net::image_cache_task::{ImageCacheTask, ImageResponseMsg}; use servo_net::local_image_cache::{ImageResponder, LocalImageCache}; use servo_net::resource_task::{ResourceTask, load_bytes_iter}; diff --git a/servo/components/layout/lib.rs b/servo/components/layout/lib.rs index a3d00e635b07..d1747bcb7513 100644 --- a/servo/components/layout/lib.rs +++ b/servo/components/layout/lib.rs @@ -27,7 +27,7 @@ extern crate style; #[no_link] #[plugin] extern crate "plugins" as servo_plugins; extern crate "net" as servo_net; -extern crate "msg" as servo_msg; +extern crate msg; #[macro_use] extern crate "util" as servo_util; diff --git a/servo/components/layout/wrapper.rs b/servo/components/layout/wrapper.rs index 6f7d1059264a..102dfb15f797 100644 --- a/servo/components/layout/wrapper.rs +++ b/servo/components/layout/wrapper.rs @@ -59,7 +59,7 @@ use script::dom::node::{LayoutNodeHelpers, RawLayoutNodeHelpers, SharedLayoutDat use script::dom::node::{HAS_CHANGED, IS_DIRTY, HAS_DIRTY_SIBLINGS, HAS_DIRTY_DESCENDANTS}; use script::dom::text::Text; use script::layout_interface::LayoutChan; -use servo_msg::constellation_msg::{PipelineId, SubpageId}; +use msg::constellation_msg::{PipelineId, SubpageId}; use servo_util::str::{LengthOrPercentageOrAuto, is_whitespace}; use std::borrow::ToOwned; use std::cell::{Ref, RefMut}; diff --git a/servo/components/layout_traits/lib.rs b/servo/components/layout_traits/lib.rs index 9acf2c42f069..bfad2637f965 100644 --- a/servo/components/layout_traits/lib.rs +++ b/servo/components/layout_traits/lib.rs @@ -6,7 +6,7 @@ extern crate gfx; extern crate script_traits; -extern crate "msg" as servo_msg; +extern crate msg; extern crate "net" as servo_net; extern crate util; @@ -17,7 +17,7 @@ extern crate util; use gfx::font_cache_task::FontCacheTask; use gfx::paint_task::PaintChan; -use servo_msg::constellation_msg::{ConstellationChan, Failure, PipelineId, PipelineExitType}; +use msg::constellation_msg::{ConstellationChan, Failure, PipelineId, PipelineExitType}; use servo_net::image_cache_task::ImageCacheTask; use servo_net::resource_task::ResourceTask; use util::time::TimeProfilerChan; diff --git a/servo/components/script/devtools.rs b/servo/components/script/devtools.rs index 6c29223af633..e5683d4819a4 100644 --- a/servo/components/script/devtools.rs +++ b/servo/components/script/devtools.rs @@ -16,7 +16,7 @@ use dom::window::{ScriptHelpers}; use dom::element::Element; use dom::document::DocumentHelpers; use page::Page; -use servo_msg::constellation_msg::PipelineId; +use msg::constellation_msg::PipelineId; use script_task::get_page; use std::sync::mpsc::Sender; diff --git a/servo/components/script/dom/bindings/trace.rs b/servo/components/script/dom/bindings/trace.rs index 0eca6f00a143..155e1606be79 100644 --- a/servo/components/script/dom/bindings/trace.rs +++ b/servo/components/script/dom/bindings/trace.rs @@ -44,8 +44,8 @@ use msg::constellation_msg::{PipelineId, SubpageId, WindowSizeData}; use net::image_cache_task::ImageCacheTask; use script_traits::ScriptControlChan; use script_traits::UntrustedNodeAddress; -use servo_msg::compositor_msg::ScriptListener; -use servo_msg::constellation_msg::ConstellationChan; +use msg::compositor_msg::ScriptListener; +use msg::constellation_msg::ConstellationChan; use util::smallvec::{SmallVec1, SmallVec}; use util::str::{LengthOrPercentageOrAuto}; use std::cell::{Cell, RefCell}; diff --git a/servo/components/script/dom/htmlformelement.rs b/servo/components/script/dom/htmlformelement.rs index 74f789ab491c..04b1c5019c3e 100644 --- a/servo/components/script/dom/htmlformelement.rs +++ b/servo/components/script/dom/htmlformelement.rs @@ -25,7 +25,7 @@ use dom::node::{Node, NodeHelpers, NodeTypeId, document_from_node, window_from_n use hyper::method::Method; use hyper::header::common::ContentType; use hyper::mime; -use servo_msg::constellation_msg::LoadData; +use msg::constellation_msg::LoadData; use util::str::DOMString; use script_task::{ScriptChan, ScriptMsg}; use std::ascii::OwnedAsciiExt; diff --git a/servo/components/script/dom/htmliframeelement.rs b/servo/components/script/dom/htmliframeelement.rs index bb310607b1b6..b4f9b577b7b9 100644 --- a/servo/components/script/dom/htmliframeelement.rs +++ b/servo/components/script/dom/htmliframeelement.rs @@ -23,9 +23,9 @@ use dom::virtualmethods::VirtualMethods; use dom::window::Window; use page::{IterablePage, Page}; -use servo_msg::constellation_msg::{PipelineId, SubpageId, ConstellationChan}; -use servo_msg::constellation_msg::IFrameSandboxState::{IFrameSandboxed, IFrameUnsandboxed}; -use servo_msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::{PipelineId, SubpageId, ConstellationChan}; +use msg::constellation_msg::IFrameSandboxState::{IFrameSandboxed, IFrameUnsandboxed}; +use msg::constellation_msg::Msg as ConstellationMsg; use util::str::DOMString; use string_cache::Atom; diff --git a/servo/components/script/dom/keyboardevent.rs b/servo/components/script/dom/keyboardevent.rs index f220f90a36ac..8ff5fe27e63d 100644 --- a/servo/components/script/dom/keyboardevent.rs +++ b/servo/components/script/dom/keyboardevent.rs @@ -13,7 +13,7 @@ use dom::bindings::utils::{Reflectable, reflect_dom_object}; use dom::event::{Event, EventTypeId}; use dom::uievent::UIEvent; use dom::window::Window; -use servo_msg::constellation_msg; +use msg::constellation_msg; use util::str::DOMString; use std::borrow::ToOwned; diff --git a/servo/components/script/dom/window.rs b/servo/components/script/dom/window.rs index ef4d6f14e2d3..98947376cc28 100644 --- a/servo/components/script/dom/window.rs +++ b/servo/components/script/dom/window.rs @@ -33,8 +33,8 @@ use script_task::ScriptMsg; use script_traits::ScriptControlChan; use timers::{IsInterval, TimerId, TimerManager, TimerCallback}; -use servo_msg::compositor_msg::ScriptListener; -use servo_msg::constellation_msg::LoadData; +use msg::compositor_msg::ScriptListener; +use msg::constellation_msg::LoadData; use servo_net::image_cache_task::ImageCacheTask; use servo_net::storage_task::StorageTask; use util::str::{DOMString,HTML_SPACE_CHARACTERS}; diff --git a/servo/components/script/layout_interface.rs b/servo/components/script/layout_interface.rs index 416b9c8bee78..ff2f643fd638 100644 --- a/servo/components/script/layout_interface.rs +++ b/servo/components/script/layout_interface.rs @@ -11,7 +11,7 @@ use dom::node::LayoutDataRef; use geom::point::Point2D; use geom::rect::Rect; use script_traits::{ScriptControlChan, OpaqueScriptLayoutChannel, UntrustedNodeAddress}; -use servo_msg::constellation_msg::{PipelineExitType, WindowSizeData}; +use msg::constellation_msg::{PipelineExitType, WindowSizeData}; use util::geometry::Au; use std::any::Any; use std::sync::mpsc::{channel, Receiver, Sender}; diff --git a/servo/components/script/lib.rs b/servo/components/script/lib.rs index d5a4c72f9cb9..b246b5ecda30 100644 --- a/servo/components/script/lib.rs +++ b/servo/components/script/lib.rs @@ -36,7 +36,6 @@ extern crate "net" as servo_net; extern crate util; #[macro_use] extern crate style; -extern crate "msg" as servo_msg; extern crate url; extern crate uuid; extern crate string_cache; diff --git a/servo/components/script/page.rs b/servo/components/script/page.rs index 61de79ff038e..44103aae6506 100644 --- a/servo/components/script/page.rs +++ b/servo/components/script/page.rs @@ -22,9 +22,9 @@ use script_traits::{UntrustedNodeAddress, ScriptControlChan}; use geom::{Point2D, Rect, Size2D}; use js::rust::Cx; -use servo_msg::compositor_msg::ScriptListener; -use servo_msg::constellation_msg::{ConstellationChan, WindowSizeData}; -use servo_msg::constellation_msg::{PipelineId, SubpageId}; +use msg::compositor_msg::ScriptListener; +use msg::constellation_msg::{ConstellationChan, WindowSizeData}; +use msg::constellation_msg::{PipelineId, SubpageId}; use servo_net::resource_task::ResourceTask; use servo_net::storage_task::StorageTask; use util::geometry::{Au, MAX_RECT}; diff --git a/servo/components/script/script_task.rs b/servo/components/script/script_task.rs index 0f3f5c1b5648..438fe67502d5 100644 --- a/servo/components/script/script_task.rs +++ b/servo/components/script/script_task.rs @@ -51,14 +51,14 @@ use script_traits::CompositorEvent::{MouseMoveEvent, KeyEvent}; use script_traits::{NewLayoutInfo, OpaqueScriptLayoutChannel}; use script_traits::{ConstellationControlMsg, ScriptControlChan}; use script_traits::ScriptTaskFactory; -use servo_msg::compositor_msg::ReadyState::{FinishedLoading, Loading, PerformingLayout}; -use servo_msg::compositor_msg::{LayerId, ScriptListener}; -use servo_msg::constellation_msg::{ConstellationChan}; -use servo_msg::constellation_msg::{LoadData, NavigationDirection, PipelineId, SubpageId}; -use servo_msg::constellation_msg::{Failure, Msg, WindowSizeData, Key, KeyState}; -use servo_msg::constellation_msg::{KeyModifiers, SUPER, SHIFT, CONTROL, ALT}; -use servo_msg::constellation_msg::{PipelineExitType}; -use servo_msg::constellation_msg::Msg as ConstellationMsg; +use msg::compositor_msg::ReadyState::{FinishedLoading, Loading, PerformingLayout}; +use msg::compositor_msg::{LayerId, ScriptListener}; +use msg::constellation_msg::{ConstellationChan}; +use msg::constellation_msg::{LoadData, NavigationDirection, PipelineId, SubpageId}; +use msg::constellation_msg::{Failure, Msg, WindowSizeData, Key, KeyState}; +use msg::constellation_msg::{KeyModifiers, SUPER, SHIFT, CONTROL, ALT}; +use msg::constellation_msg::{PipelineExitType}; +use msg::constellation_msg::Msg as ConstellationMsg; use servo_net::image_cache_task::ImageCacheTask; use servo_net::resource_task::{ResourceTask, ControlMsg}; use servo_net::resource_task::LoadData as NetLoadData; diff --git a/servo/components/script_traits/lib.rs b/servo/components/script_traits/lib.rs index c8468ce49256..efe4257b887c 100644 --- a/servo/components/script_traits/lib.rs +++ b/servo/components/script_traits/lib.rs @@ -10,7 +10,7 @@ extern crate devtools_traits; extern crate geom; extern crate libc; -extern crate "msg" as servo_msg; +extern crate msg; extern crate "net" as servo_net; extern crate util; extern crate url; @@ -23,10 +23,10 @@ extern crate serialize; use devtools_traits::DevtoolsControlChan; use libc::c_void; -use servo_msg::constellation_msg::{ConstellationChan, PipelineId, Failure, WindowSizeData}; -use servo_msg::constellation_msg::{LoadData, SubpageId, Key, KeyState, KeyModifiers}; -use servo_msg::constellation_msg::PipelineExitType; -use servo_msg::compositor_msg::ScriptListener; +use msg::constellation_msg::{ConstellationChan, PipelineId, Failure, WindowSizeData}; +use msg::constellation_msg::{LoadData, SubpageId, Key, KeyState, KeyModifiers}; +use msg::constellation_msg::PipelineExitType; +use msg::compositor_msg::ScriptListener; use servo_net::image_cache_task::ImageCacheTask; use servo_net::resource_task::ResourceTask; use servo_net::storage_task::StorageTask; diff --git a/servo/components/servo/lib.rs b/servo/components/servo/lib.rs index fb11dde6717d..ab1b98e20bba 100644 --- a/servo/components/servo/lib.rs +++ b/servo/components/servo/lib.rs @@ -13,7 +13,7 @@ extern crate log; extern crate compositing; extern crate devtools; extern crate "net" as servo_net; -extern crate "msg" as servo_msg; +extern crate msg; #[macro_use] extern crate util; extern crate script; @@ -28,9 +28,9 @@ use compositing::windowing::{WindowEvent, WindowMethods}; #[cfg(not(test))] use compositing::{CompositorProxy, CompositorTask, Constellation}; #[cfg(not(test))] -use servo_msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::Msg as ConstellationMsg; #[cfg(not(test))] -use servo_msg::constellation_msg::ConstellationChan; +use msg::constellation_msg::ConstellationChan; #[cfg(not(test))] use script::dom::bindings::codegen::RegisterBindings; diff --git a/servo/ports/cef/browser_host.rs b/servo/ports/cef/browser_host.rs index 7b2d3f2c691d..a12c0402da40 100644 --- a/servo/ports/cef/browser_host.rs +++ b/servo/ports/cef/browser_host.rs @@ -12,7 +12,7 @@ use compositing::windowing::{WindowEvent, MouseWindowEvent}; use geom::point::TypedPoint2D; use geom::size::TypedSize2D; use libc::{c_double, c_int}; -use servo_msg::constellation_msg::{self, KeyModifiers, KeyState}; +use msg::constellation_msg::{self, KeyModifiers, KeyState}; use std::cell::RefCell; pub struct ServoCefBrowserHost { diff --git a/servo/ports/cef/lib.rs b/servo/ports/cef/lib.rs index c2a9433ddacc..dd22106f41e9 100644 --- a/servo/ports/cef/lib.rs +++ b/servo/ports/cef/lib.rs @@ -25,7 +25,7 @@ extern crate png; extern crate script; extern crate "net" as servo_net; -extern crate "msg" as servo_msg; +extern crate msg; extern crate util; extern crate style; extern crate stb_image; diff --git a/servo/ports/cef/window.rs b/servo/ports/cef/window.rs index 8b4a29e24e8a..e969e6946e49 100644 --- a/servo/ports/cef/window.rs +++ b/servo/ports/cef/window.rs @@ -21,9 +21,9 @@ use gleam::gl; use layers::geometry::DevicePixel; use layers::platform::surface::NativeGraphicsMetadata; use libc::{c_char, c_void}; -use servo_msg::constellation_msg::{Key, KeyModifiers}; -use servo_msg::compositor_msg::{ReadyState, PaintState}; -use servo_msg::constellation_msg::LoadData; +use msg::constellation_msg::{Key, KeyModifiers}; +use msg::compositor_msg::{ReadyState, PaintState}; +use msg::constellation_msg::LoadData; use util::cursor::Cursor; use util::geometry::ScreenPx; use std::cell::RefCell; diff --git a/servo/ports/gonk/src/lib.rs b/servo/ports/gonk/src/lib.rs index b65cf9dae86d..7eb80cbee01b 100644 --- a/servo/ports/gonk/src/lib.rs +++ b/servo/ports/gonk/src/lib.rs @@ -12,7 +12,7 @@ extern crate log; extern crate compositing; extern crate devtools; extern crate "net" as servo_net; -extern crate "msg" as servo_msg; +extern crate msg; #[macro_use] extern crate util; extern crate script; @@ -27,9 +27,9 @@ use compositing::windowing::{WindowEvent, WindowMethods}; #[cfg(not(test))] use compositing::{CompositorProxy, CompositorTask, Constellation}; #[cfg(not(test))] -use servo_msg::constellation_msg::Msg as ConstellationMsg; +use msg::constellation_msg::Msg as ConstellationMsg; #[cfg(not(test))] -use servo_msg::constellation_msg::ConstellationChan; +use msg::constellation_msg::ConstellationChan; #[cfg(not(test))] use script::dom::bindings::codegen::RegisterBindings;