mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Strict import formatting (grouping and granularity) (#30325)
* strict imports formatting * Reformat all imports
This commit is contained in:
parent
413da4ca69
commit
aad2dccc9c
802 changed files with 6861 additions and 6395 deletions
|
@ -12,6 +12,9 @@ pub mod message;
|
|||
pub mod rpc;
|
||||
pub mod wrapper_traits;
|
||||
|
||||
use std::any::Any;
|
||||
use std::sync::atomic::AtomicIsize;
|
||||
|
||||
use atomic_refcell::AtomicRefCell;
|
||||
use canvas_traits::canvas::{CanvasId, CanvasMsg};
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
|
@ -20,8 +23,6 @@ use malloc_size_of_derive::MallocSizeOf;
|
|||
use net_traits::image_cache::PendingImageId;
|
||||
use script_traits::UntrustedNodeAddress;
|
||||
use servo_url::{ImmutableOrigin, ServoUrl};
|
||||
use std::any::Any;
|
||||
use std::sync::atomic::AtomicIsize;
|
||||
use style::data::ElementData;
|
||||
use webrender_api::ImageKey;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,35 +4,29 @@
|
|||
|
||||
#![allow(unsafe_code)]
|
||||
|
||||
use crate::HTMLCanvasData;
|
||||
use crate::HTMLMediaData;
|
||||
use crate::LayoutNodeType;
|
||||
use crate::SVGSVGData;
|
||||
use crate::StyleAndOpaqueLayoutData;
|
||||
use std::borrow::Cow;
|
||||
use std::fmt::Debug;
|
||||
use std::sync::Arc as StdArc;
|
||||
|
||||
use atomic_refcell::AtomicRef;
|
||||
use gfx_traits::{combine_id_with_fragment_type, ByteIndex, FragmentType};
|
||||
use html5ever::local_name;
|
||||
use html5ever::namespace_url;
|
||||
use html5ever::ns;
|
||||
use html5ever::{LocalName, Namespace};
|
||||
use html5ever::{local_name, namespace_url, ns, LocalName, Namespace};
|
||||
use msg::constellation_msg::{BrowsingContextId, PipelineId};
|
||||
use net_traits::image::base::{Image, ImageMetadata};
|
||||
use range::Range;
|
||||
use servo_arc::Arc;
|
||||
use servo_url::ServoUrl;
|
||||
use std::borrow::Cow;
|
||||
use std::fmt::Debug;
|
||||
use std::sync::Arc as StdArc;
|
||||
use style::attr::AttrValue;
|
||||
use style::context::SharedStyleContext;
|
||||
use style::data::ElementData;
|
||||
use style::dom::OpaqueNode;
|
||||
use style::dom::{LayoutIterator, NodeInfo, TElement, TNode};
|
||||
use style::dom::{LayoutIterator, NodeInfo, OpaqueNode, TElement, TNode};
|
||||
use style::properties::ComputedValues;
|
||||
use style::selector_parser::{PseudoElement, PseudoElementCascadeType, SelectorImpl};
|
||||
use style::stylist::RuleInclusion;
|
||||
use webrender_api::ExternalScrollId;
|
||||
|
||||
use crate::{HTMLCanvasData, HTMLMediaData, LayoutNodeType, SVGSVGData, StyleAndOpaqueLayoutData};
|
||||
|
||||
pub trait LayoutDataTrait: Default + Send + Sync + 'static {}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue