mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
tidy: Clean up warnings and tidy lints.
This commit is contained in:
parent
cb3da24f08
commit
9cf2e52d36
8 changed files with 78 additions and 76 deletions
|
@ -3,10 +3,9 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use cssparser::{Parser, Delimiter};
|
||||
use selectors::matching::DeclarationBlock;
|
||||
use parser::ParserContext;
|
||||
use properties::{ComputedValues, PropertyDeclaration, PropertyDeclarationBlock, parse_property_declaration_list};
|
||||
use properties::animated_properties::TransitionProperty;
|
||||
use properties::{PropertyDeclaration, parse_property_declaration_list};
|
||||
use std::sync::Arc;
|
||||
|
||||
/// Parses a keyframes list, like:
|
||||
|
@ -165,7 +164,7 @@ impl KeyframesAnimation {
|
|||
debug_assert!(keyframes.len() > 1);
|
||||
let mut steps = vec![];
|
||||
|
||||
let mut animated_properties = get_animated_properties(&keyframes[0]);
|
||||
let animated_properties = get_animated_properties(&keyframes[0]);
|
||||
if animated_properties.is_empty() {
|
||||
return None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue