mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
style: Manually extinguish multi-line use statements.
This commit is contained in:
parent
212b3e1311
commit
bd9c53c5da
19 changed files with 46 additions and 67 deletions
|
@ -38,9 +38,8 @@ use crate::rule_tree::StrongRuleNode;
|
|||
use crate::shared_lock::Locked;
|
||||
use crate::stylesheets::keyframes_rule::Keyframe;
|
||||
use crate::stylesheets::{CounterStyleRule, CssRules, FontFaceRule, FontFeatureValuesRule};
|
||||
use crate::stylesheets::{
|
||||
DocumentRule, ImportRule, KeyframesRule, MediaRule, NamespaceRule, PageRule,
|
||||
};
|
||||
use crate::stylesheets::{DocumentRule, ImportRule, KeyframesRule, MediaRule};
|
||||
use crate::stylesheets::{NamespaceRule, PageRule};
|
||||
use crate::stylesheets::{StyleRule, StylesheetContents, SupportsRule};
|
||||
use servo_arc::{Arc, ArcBorrow};
|
||||
use std::{mem, ptr};
|
||||
|
|
|
@ -18,9 +18,8 @@ use crate::stylesheets::{Origin, RulesMutateError};
|
|||
use crate::values::computed::image::LineDirection;
|
||||
use crate::values::computed::url::ComputedImageUrl;
|
||||
use crate::values::computed::{Angle, CalcLengthOrPercentage, Gradient, Image};
|
||||
use crate::values::computed::{
|
||||
Integer, LengthOrPercentage, LengthOrPercentageOrAuto, NonNegativeLengthOrPercentageOrAuto,
|
||||
};
|
||||
use crate::values::computed::{Integer, LengthOrPercentage};
|
||||
use crate::values::computed::{LengthOrPercentageOrAuto, NonNegativeLengthOrPercentageOrAuto};
|
||||
use crate::values::computed::{Percentage, TextAlign};
|
||||
use crate::values::generics::box_::VerticalAlign;
|
||||
use crate::values::generics::grid::{TrackListValue, TrackSize};
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
//! Global style data
|
||||
|
||||
use crate::context::StyleSystemOptions;
|
||||
use crate::gecko_bindings::bindings::Gecko_SetJemallocThreadLocalArena;
|
||||
use crate::gecko_bindings::bindings::{
|
||||
Gecko_RegisterProfilerThread, Gecko_UnregisterProfilerThread,
|
||||
};
|
||||
use crate::gecko_bindings::bindings;
|
||||
use crate::parallel::STYLE_THREAD_STACK_SIZE_KB;
|
||||
use crate::shared_lock::SharedRwLock;
|
||||
use crate::thread_state;
|
||||
|
@ -43,20 +40,20 @@ fn thread_name(index: usize) -> String {
|
|||
fn thread_startup(index: usize) {
|
||||
thread_state::initialize_layout_worker_thread();
|
||||
unsafe {
|
||||
Gecko_SetJemallocThreadLocalArena(true);
|
||||
bindings::Gecko_SetJemallocThreadLocalArena(true);
|
||||
}
|
||||
let name = thread_name(index);
|
||||
let name = CString::new(name).unwrap();
|
||||
unsafe {
|
||||
// Gecko_RegisterProfilerThread copies the passed name here.
|
||||
Gecko_RegisterProfilerThread(name.as_ptr());
|
||||
bindings::Gecko_RegisterProfilerThread(name.as_ptr());
|
||||
}
|
||||
}
|
||||
|
||||
fn thread_shutdown(_: usize) {
|
||||
unsafe {
|
||||
Gecko_UnregisterProfilerThread();
|
||||
Gecko_SetJemallocThreadLocalArena(false);
|
||||
bindings::Gecko_UnregisterProfilerThread();
|
||||
bindings::Gecko_SetJemallocThreadLocalArena(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,13 +14,12 @@ use crate::gecko_bindings::sugar::ns_style_coord::{CoordData, CoordDataMut, Coor
|
|||
use crate::media_queries::Device;
|
||||
use crate::values::computed::basic_shape::ShapeRadius as ComputedShapeRadius;
|
||||
use crate::values::computed::FlexBasis as ComputedFlexBasis;
|
||||
use crate::values::computed::NonNegativeNumber;
|
||||
use crate::values::computed::{Angle, ExtremumLength, Length, LengthOrPercentage};
|
||||
use crate::values::computed::{LengthOrPercentageOrAuto, Percentage};
|
||||
use crate::values::computed::{LengthOrPercentageOrNone, Number, NumberOrPercentage};
|
||||
use crate::values::computed::{MaxLength as ComputedMaxLength, MozLength as ComputedMozLength};
|
||||
use crate::values::computed::{
|
||||
NonNegativeLength, NonNegativeLengthOrPercentage, NonNegativeNumber,
|
||||
};
|
||||
use crate::values::computed::{NonNegativeLength, NonNegativeLengthOrPercentage};
|
||||
use crate::values::generics::basic_shape::ShapeRadius;
|
||||
use crate::values::generics::box_::Perspective;
|
||||
use crate::values::generics::flex::FlexBasis;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue