mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: fix formatting.
This commit is contained in:
parent
97f29c893f
commit
bb8c3ee8ba
4 changed files with 18 additions and 13 deletions
|
@ -1241,11 +1241,17 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
}
|
||||
}
|
||||
|
||||
fn animation_rule(&self, _: &SharedStyleContext) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
fn animation_rule(
|
||||
&self,
|
||||
_: &SharedStyleContext,
|
||||
) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
get_animation_rule(self, CascadeLevel::Animations)
|
||||
}
|
||||
|
||||
fn transition_rule(&self, _: &SharedStyleContext) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
fn transition_rule(
|
||||
&self,
|
||||
_: &SharedStyleContext,
|
||||
) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
get_animation_rule(self, CascadeLevel::Transitions)
|
||||
}
|
||||
|
||||
|
|
|
@ -421,11 +421,12 @@ trait PrivateMatchMethods: TElement {
|
|||
new_values,
|
||||
/* pseudo_element = */ None,
|
||||
) {
|
||||
let after_change_style = if self.has_css_transitions(context.shared, /* pseudo_element = */ None) {
|
||||
self.after_change_style(context, new_values)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let after_change_style =
|
||||
if self.has_css_transitions(context.shared, /* pseudo_element = */ None) {
|
||||
self.after_change_style(context, new_values)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
// In order to avoid creating a SequentialTask for transitions which
|
||||
// may not be updated, we check it per property to make sure Gecko
|
||||
|
|
|
@ -40,7 +40,7 @@ fn flexbox_enabled() -> bool {
|
|||
return servo_config::prefs::pref_map()
|
||||
.get("layout.flexbox.enabled")
|
||||
.as_bool()
|
||||
.unwrap_or(false)
|
||||
.unwrap_or(false);
|
||||
}
|
||||
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue