diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-07-22 12:49:39 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-07-23 23:09:55 +0200 |
commit | 3d57c22e9cda982923dd184152d3f187910d7b46 (patch) | |
tree | 51d07653ebd19e68626a5a0b442e8dde98c9dbd0 /components/script/script_thread.rs | |
parent | 2ff7cb5a3749d65bb7b7a8f637d8196e316179c9 (diff) | |
download | servo-3d57c22e9cda982923dd184152d3f187910d7b46.tar.gz servo-3d57c22e9cda982923dd184152d3f187910d7b46.zip |
Update euclid.
There are a few canvas2d-related dependencies that haven't updated, but they
only use euclid internally so that's not blocking landing the rest of the
changes.
Given the size of this patch, I think it's useful to get this landed as-is.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 07626cc80bd..8193c9b7ace 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -94,7 +94,8 @@ use devtools_traits::CSSError; use devtools_traits::{DevtoolScriptControlMsg, DevtoolsPageInfo}; use devtools_traits::{ScriptToDevtoolsControlMsg, WorkerId}; use embedder_traits::EmbedderMsg; -use euclid::{Point2D, Rect, Vector2D}; +use euclid::default::{Point2D, Rect}; +use euclid::Vector2D; use headers::ReferrerPolicy as ReferrerPolicyHeader; use headers::{HeaderMapExt, LastModified}; use hyper_serde::Serde; @@ -161,6 +162,7 @@ use style::thread_state::{self, ThreadState}; use time::{at_utc, get_time, precise_time_ns, Timespec}; use url::percent_encoding::percent_decode; use url::Position; +use webrender_api::units::LayoutPixel; use webrender_api::{DocumentId, RenderApiSender}; use webvr_traits::{WebVREvent, WebVRMsg}; @@ -2230,7 +2232,7 @@ impl ScriptThread { fn handle_set_scroll_state( &self, id: PipelineId, - scroll_states: &[(UntrustedNodeAddress, Vector2D<f32>)], + scroll_states: &[(UntrustedNodeAddress, Vector2D<f32, LayoutPixel>)], ) { let window = match { self.documents.borrow().find_window(id) } { Some(window) => window, |