diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-01-20 15:38:14 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-01-20 16:31:01 +0100 |
commit | 90c0ec0cf77f37d2e3da838ee25bca137733f3ce (patch) | |
tree | 7d02a1e496343ee068e8416e3b996cadd4869c23 /components/script_traits/lib.rs | |
parent | 05881b5ab4bf6f18d09763978ee5924a5b0dd895 (diff) | |
download | servo-90c0ec0cf77f37d2e3da838ee25bca137733f3ce.tar.gz servo-90c0ec0cf77f37d2e3da838ee25bca137733f3ce.zip |
Fix servo build and rustfmt recent changes.
We need to introduce another Cursor enum that is specific to embedder_traits and
that layout converts to to avoid dependency hell.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index c033b491e35..e2bc5c4d1ed 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -24,6 +24,7 @@ use bluetooth_traits::BluetoothRequest; use canvas_traits::webgl::WebGLPipeline; use crossbeam_channel::{Receiver, RecvTimeoutError, Sender}; use devtools_traits::{DevtoolScriptControlMsg, ScriptToDevtoolsControlMsg, WorkerId}; +use embedder_traits::Cursor; use euclid::{Length, Point2D, Rect, TypedScale, TypedSize2D, Vector2D}; use gfx_traits::Epoch; use http::HeaderMap; @@ -50,7 +51,6 @@ use servo_url::ServoUrl; use std::collections::HashMap; use std::fmt; use std::sync::Arc; -use style_traits::cursor::CursorKind; use style_traits::CSSPixel; use style_traits::SpeculativePainter; use webrender_api::{ @@ -775,7 +775,7 @@ pub enum ConstellationMsg { /// Forward an event to the script task of the given pipeline. ForwardEvent(PipelineId, CompositorEvent), /// Requesting a change to the onscreen cursor. - SetCursor(CursorKind), + SetCursor(Cursor), } impl fmt::Debug for ConstellationMsg { |