mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Run rustfmt on selectors, servo_arc, and style.
This was generated with: ./mach cargo fmt --package selectors && ./mach cargo fmt --package servo_arc && ./mach cargo fmt --package style Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
This commit is contained in:
parent
f7ae1a37e3
commit
c99bcdd4b8
181 changed files with 9981 additions and 7933 deletions
|
@ -9,7 +9,7 @@ use rule_tree::{CascadeLevel, StyleSource};
|
|||
use servo_arc::Arc;
|
||||
use shared_lock::Locked;
|
||||
use smallvec::SmallVec;
|
||||
use std::fmt::{Debug, self};
|
||||
use std::fmt::{self, Debug};
|
||||
use std::mem;
|
||||
|
||||
/// List of applicable declarations. This is a transient structure that shuttles
|
||||
|
@ -89,9 +89,10 @@ impl ApplicableDeclarationBlock {
|
|||
/// Constructs an applicable declaration block from a given property
|
||||
/// declaration block and importance.
|
||||
#[inline]
|
||||
pub fn from_declarations(declarations: Arc<Locked<PropertyDeclarationBlock>>,
|
||||
level: CascadeLevel)
|
||||
-> Self {
|
||||
pub fn from_declarations(
|
||||
declarations: Arc<Locked<PropertyDeclarationBlock>>,
|
||||
level: CascadeLevel,
|
||||
) -> Self {
|
||||
ApplicableDeclarationBlock {
|
||||
source: StyleSource::Declarations(declarations),
|
||||
order_and_level: SourceOrderAndCascadeLevel::new(0, level),
|
||||
|
@ -101,16 +102,12 @@ impl ApplicableDeclarationBlock {
|
|||
|
||||
/// Constructs an applicable declaration block from the given components
|
||||
#[inline]
|
||||
pub fn new(source: StyleSource,
|
||||
order: u32,
|
||||
level: CascadeLevel,
|
||||
specificity: u32) -> Self {
|
||||
pub fn new(source: StyleSource, order: u32, level: CascadeLevel, specificity: u32) -> Self {
|
||||
ApplicableDeclarationBlock {
|
||||
source: source,
|
||||
order_and_level: SourceOrderAndCascadeLevel::new(order, level),
|
||||
specificity: specificity,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Returns the source order of the block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue