mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Run "cargo +nightly fmt" for style components in servo
The directories changed: * servo/components/selectors/ * servo/components/style/ * servo/components/style_derive/ * servo/ports/geckolib/ Per review request, disable rustfmt in `components_to_transform_3d_matrix()` to preserve the format for a call to `Transform3D::new`. My mozilla-central is at https://hg.mozilla.org/mozilla-central/rev/d1ae84015c22f2034435b47194fdced878072035 My nightly rust is 1.66.0-nightly (8b705839c 2022-09-26). Differential Revision: https://phabricator.services.mozilla.com/D158234
This commit is contained in:
parent
1a9198a5ef
commit
3da52edffc
60 changed files with 684 additions and 489 deletions
|
@ -10,7 +10,9 @@ use crate::invalidation::element::invalidator::{DescendantInvalidationLists, Inv
|
|||
use crate::invalidation::element::invalidator::{Invalidation, InvalidationProcessor};
|
||||
use crate::invalidation::element::state_and_attributes;
|
||||
use crate::stylist::CascadeData;
|
||||
use selectors::matching::{MatchingContext, MatchingMode, QuirksMode, VisitedHandlingMode, NeedsSelectorFlags};
|
||||
use selectors::matching::{
|
||||
MatchingContext, MatchingMode, NeedsSelectorFlags, QuirksMode, VisitedHandlingMode,
|
||||
};
|
||||
use style_traits::dom::DocumentState;
|
||||
|
||||
/// A struct holding the members necessary to invalidate document state
|
||||
|
|
|
@ -18,7 +18,9 @@ use crate::selector_parser::Snapshot;
|
|||
use crate::stylesheets::origin::OriginSet;
|
||||
use crate::{Atom, WeakAtom};
|
||||
use selectors::attr::CaseSensitivity;
|
||||
use selectors::matching::{matches_selector, MatchingContext, MatchingMode, VisitedHandlingMode, NeedsSelectorFlags};
|
||||
use selectors::matching::{
|
||||
matches_selector, MatchingContext, MatchingMode, NeedsSelectorFlags, VisitedHandlingMode,
|
||||
};
|
||||
use selectors::NthIndexCache;
|
||||
use smallvec::SmallVec;
|
||||
use style_traits::dom::ElementState;
|
||||
|
@ -410,10 +412,7 @@ where
|
|||
self.collect_state_dependencies(&map.state_affecting_selectors)
|
||||
}
|
||||
|
||||
fn collect_state_dependencies(
|
||||
&mut self,
|
||||
map: &'selectors SelectorMap<StateDependency>,
|
||||
) {
|
||||
fn collect_state_dependencies(&mut self, map: &'selectors SelectorMap<StateDependency>) {
|
||||
if self.state_changes.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ use crate::shared_lock::SharedRwLockReadGuard;
|
|||
use crate::stylesheets::{CssRule, StylesheetInDocument};
|
||||
use crate::stylesheets::{EffectiveRules, EffectiveRulesIterator};
|
||||
use crate::values::AtomIdent;
|
||||
use crate::{Atom, ShrinkIfNeeded};
|
||||
use crate::LocalName as SelectorLocalName;
|
||||
use crate::{Atom, ShrinkIfNeeded};
|
||||
use selectors::parser::{Component, LocalName, Selector};
|
||||
|
||||
/// The kind of change that happened for a given rule.
|
||||
|
@ -632,10 +632,7 @@ impl StylesheetInvalidationSet {
|
|||
// existing elements.
|
||||
}
|
||||
},
|
||||
CounterStyle(..) |
|
||||
Page(..) |
|
||||
Viewport(..) |
|
||||
FontFeatureValues(..) => {
|
||||
CounterStyle(..) | Page(..) | Viewport(..) | FontFeatureValues(..) => {
|
||||
debug!(
|
||||
" > Found unsupported rule, marking the whole subtree \
|
||||
invalid."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue