mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
style: Fix unit tests.
This commit is contained in:
parent
658b8e3312
commit
e1855b3b3b
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ use std::sync::atomic::AtomicBool;
|
||||||
use style::context::QuirksMode;
|
use style::context::QuirksMode;
|
||||||
use style::error_reporting::{ParseErrorReporter, ContextualParseError};
|
use style::error_reporting::{ParseErrorReporter, ContextualParseError};
|
||||||
use style::media_queries::MediaList;
|
use style::media_queries::MediaList;
|
||||||
use style::properties::{CSSWideKeyword, CustomDeclaration, DeclarationPushMode};
|
use style::properties::{CSSWideKeyword, CustomDeclaration};
|
||||||
use style::properties::{DeclaredValueOwned, Importance};
|
use style::properties::{DeclaredValueOwned, Importance};
|
||||||
use style::properties::{PropertyDeclaration, PropertyDeclarationBlock};
|
use style::properties::{PropertyDeclaration, PropertyDeclarationBlock};
|
||||||
use style::properties::longhands::{self, animation_timing_function};
|
use style::properties::longhands::{self, animation_timing_function};
|
||||||
|
@ -34,7 +34,7 @@ pub fn block_from<I>(iterable: I) -> PropertyDeclarationBlock
|
||||||
where I: IntoIterator<Item=(PropertyDeclaration, Importance)> {
|
where I: IntoIterator<Item=(PropertyDeclaration, Importance)> {
|
||||||
let mut block = PropertyDeclarationBlock::new();
|
let mut block = PropertyDeclarationBlock::new();
|
||||||
for (d, i) in iterable {
|
for (d, i) in iterable {
|
||||||
block.push(d, i, DeclarationPushMode::Append);
|
block.push(d, i);
|
||||||
}
|
}
|
||||||
block
|
block
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue