mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Format style component.
This commit is contained in:
parent
31fc6cd565
commit
8dab4d659a
120 changed files with 2207 additions and 1417 deletions
|
@ -272,12 +272,8 @@ impl ElementData {
|
|||
return InvalidationResult::empty();
|
||||
}
|
||||
|
||||
let mut processor = StateAndAttrInvalidationProcessor::new(
|
||||
shared_context,
|
||||
element,
|
||||
self,
|
||||
nth_index_cache,
|
||||
);
|
||||
let mut processor =
|
||||
StateAndAttrInvalidationProcessor::new(shared_context, element, self, nth_index_cache);
|
||||
|
||||
let invalidator = TreeStyleInvalidator::new(element, stack_limit_checker, &mut processor);
|
||||
|
||||
|
@ -305,7 +301,8 @@ impl ElementData {
|
|||
|
||||
/// Returns this element's primary style as a resolved style to use for sharing.
|
||||
pub fn share_primary_style(&self) -> PrimaryStyle {
|
||||
let reused_via_rule_node = self.flags
|
||||
let reused_via_rule_node = self
|
||||
.flags
|
||||
.contains(ElementDataFlags::PRIMARY_STYLE_REUSED_VIA_RULE_NODE);
|
||||
|
||||
PrimaryStyle {
|
||||
|
@ -390,7 +387,8 @@ impl ElementData {
|
|||
guards: &StylesheetGuards,
|
||||
) -> bool {
|
||||
debug_assert!(self.has_styles());
|
||||
let (important_rules, _custom) = self.styles
|
||||
let (important_rules, _custom) = self
|
||||
.styles
|
||||
.primary()
|
||||
.rules()
|
||||
.get_properties_overriding_animations(&guards);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue