aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2025-03-03 12:26:53 +0100
committerGitHub <noreply@github.com>2025-03-03 11:26:53 +0000
commit3d320fa96ae2ca95a720c454c47ee7827864c5af (patch)
tree1b7718d574cb9164d924b7571760d90d6d2099c4 /components/layout_thread
parent6300e820b4e3fbfcec260048f931528d4998d5e4 (diff)
downloadservo-3d320fa96ae2ca95a720c454c47ee7827864c5af.tar.gz
servo-3d320fa96ae2ca95a720c454c47ee7827864c5af.zip
Update rustfmt to the 2024 style edition (#35764)
* Use 2024 style edition Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Reformat all code Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/layout_thread')
-rw-r--r--components/layout_thread/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs
index 8c275230b23..98637f7e96c 100644
--- a/components/layout_thread/lib.rs
+++ b/components/layout_thread/lib.rs
@@ -14,15 +14,15 @@ use std::process;
use std::sync::{Arc, LazyLock, Mutex};
use app_units::Au;
+use base::Epoch;
use base::cross_process_instant::CrossProcessInstant;
use base::id::{PipelineId, WebViewId};
-use base::Epoch;
use embedder_traits::resources::{self, Resource};
use euclid::default::{Point2D as UntypedPoint2D, Rect as UntypedRect, Size2D as UntypedSize2D};
use euclid::{Point2D, Rect, Scale, Size2D};
use fnv::FnvHashMap;
use fonts::{
- get_and_reset_text_shaping_performance_counter, FontContext, FontContextWebFontMethods,
+ FontContext, FontContextWebFontMethods, get_and_reset_text_shaping_performance_counter,
};
use fonts_traits::StylesheetWebFontLoadFinishedCallback;
use fxhash::{FxHashMap, FxHashSet};
@@ -41,8 +41,8 @@ use layout::query::{
process_scrolling_area_request,
};
use layout::traversal::{
- construct_flows_at_ancestors, ComputeStackingRelativePositions, PreorderFlowTraversal,
- RecalcStyleAndConstructFlows,
+ ComputeStackingRelativePositions, PreorderFlowTraversal, RecalcStyleAndConstructFlows,
+ construct_flows_at_ancestors,
};
use layout::wrapper::ThreadSafeLayoutNodeHelpers;
use layout::{parallel, sequential};
@@ -103,7 +103,7 @@ use style_traits::{CSSPixel, SpeculativePainter};
use time::Duration;
use url::Url;
use webrender_api::units::DevicePixel;
-use webrender_api::{units, ColorF, HitTestFlags};
+use webrender_api::{ColorF, HitTestFlags, units};
use webrender_traits::CrossProcessCompositorApi;
// This mutex is necessary due to syncronisation issues between two different types of thread-local storage