diff options
Diffstat (limited to 'components/script_layout_interface/message.rs')
-rw-r--r-- | components/script_layout_interface/message.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs index b20c92d870e..5aeadef6894 100644 --- a/components/script_layout_interface/message.rs +++ b/components/script_layout_interface/message.rs @@ -2,8 +2,9 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use crate::rpc::LayoutRPC; -use crate::{PendingImage, TrustedNodeAddress}; +use std::sync::atomic::AtomicBool; +use std::sync::Arc; + use app_units::Au; use crossbeam_channel::{Receiver, Sender}; use euclid::default::{Point2D, Rect}; @@ -14,16 +15,13 @@ use metrics::PaintTimeMetrics; use msg::constellation_msg::{BackgroundHangMonitorRegister, BrowsingContextId, PipelineId}; use net_traits::image_cache::ImageCache; use profile_traits::mem::ReportsChan; -use script_traits::Painter; use script_traits::{ - ConstellationControlMsg, LayoutControlMsg, LayoutMsg as ConstellationMsg, ScrollState, + ConstellationControlMsg, LayoutControlMsg, LayoutMsg as ConstellationMsg, Painter, ScrollState, WindowSizeData, }; use servo_arc::Arc as ServoArc; use servo_atoms::Atom; use servo_url::{ImmutableOrigin, ServoUrl}; -use std::sync::atomic::AtomicBool; -use std::sync::Arc; use style::animation::DocumentAnimationSet; use style::context::QuirksMode; use style::dom::OpaqueNode; @@ -32,6 +30,9 @@ use style::properties::PropertyId; use style::selector_parser::{PseudoElement, RestyleDamage, Snapshot}; use style::stylesheets::Stylesheet; +use crate::rpc::LayoutRPC; +use crate::{PendingImage, TrustedNodeAddress}; + /// Asynchronous messages that script can send to layout. pub enum Msg { /// Adds the given stylesheet to the document. The second stylesheet is the |