diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-16 11:57:39 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-17 18:34:23 +0100 |
commit | 913c874cb55fd0fdc9e8f3a4c34624cd015fac8a (patch) | |
tree | 4526ecefafe0cde2f56cb1e2a4ebffd372e1f70a /components/constellation/pipeline.rs | |
parent | f14e7339b5ff95fce0127dce4fe87ce082ab7259 (diff) | |
download | servo-913c874cb55fd0fdc9e8f3a4c34624cd015fac8a.tar.gz servo-913c874cb55fd0fdc9e8f3a4c34624cd015fac8a.zip |
Urlmageddon: Use refcounted urls more often.
Diffstat (limited to 'components/constellation/pipeline.rs')
-rw-r--r-- | components/constellation/pipeline.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index e46baa81067..0e76b4bcc88 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -26,6 +26,7 @@ use script_traits::{ConstellationControlMsg, InitialScriptState}; use script_traits::{LayoutControlMsg, LayoutMsg, LoadData, MozBrowserEvent}; use script_traits::{NewLayoutInfo, SWManagerMsg, SWManagerSenders, ScriptMsg}; use script_traits::{ScriptThreadFactory, TimerEventRequest, WindowSizeData}; +use servo_url::ServoUrl; use std::collections::HashMap; use std::env; use std::ffi::OsStr; @@ -34,7 +35,6 @@ use std::process; use std::rc::Rc; use std::sync::mpsc::Sender; use style_traits::{PagePx, ViewportPx}; -use url::Url; use util::opts::{self, Opts}; use util::prefs::{PREFS, Pref}; use webrender_traits; @@ -58,7 +58,7 @@ pub struct Pipeline { /// A channel to the compositor. pub compositor_proxy: Box<CompositorProxy + 'static + Send>, /// URL corresponding to the most recently-loaded page. - pub url: Url, + pub url: ServoUrl, /// The title of the most recently-loaded page. pub title: Option<String>, pub size: Option<TypedSize2D<f32, PagePx>>, @@ -264,7 +264,7 @@ impl Pipeline { layout_chan: IpcSender<LayoutControlMsg>, compositor_proxy: Box<CompositorProxy + 'static + Send>, is_private: bool, - url: Url, + url: ServoUrl, size: Option<TypedSize2D<f32, PagePx>>, visible: bool) -> Pipeline { |