mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix unit test build.
This commit is contained in:
parent
60e28c61e5
commit
c7fc80c5a3
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
use cssparser::{Parser, ParserInput};
|
use cssparser::{Parser, ParserInput};
|
||||||
use servo_arc::Arc;
|
use servo_arc::Arc;
|
||||||
use style::custom_properties::{Name, SpecifiedValue, CustomPropertiesMap, CustomPropertiesBuilder};
|
use style::custom_properties::{Name, SpecifiedValue, CustomPropertiesMap, CustomPropertiesBuilder};
|
||||||
use style::properties::DeclaredValue;
|
use style::properties::CustomDeclarationValue;
|
||||||
use test::{self, Bencher};
|
use test::{self, Bencher};
|
||||||
|
|
||||||
fn cascade(
|
fn cascade(
|
||||||
|
@ -21,7 +21,7 @@ fn cascade(
|
||||||
let mut builder = CustomPropertiesBuilder::new(inherited);
|
let mut builder = CustomPropertiesBuilder::new(inherited);
|
||||||
|
|
||||||
for &(ref name, ref val) in &values {
|
for &(ref name, ref val) in &values {
|
||||||
builder.cascade(name, DeclaredValue::Value(val));
|
builder.cascade(name, &CustomDeclarationValue::Value(val.clone()));
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.build()
|
builder.build()
|
||||||
|
|
|
@ -18,7 +18,7 @@ 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};
|
use style::properties::{CSSWideKeyword, CustomDeclaration};
|
||||||
use style::properties::{DeclaredValueOwned, Importance};
|
use style::properties::{CustomDeclarationValue, 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};
|
||||||
use style::shared_lock::SharedRwLock;
|
use style::shared_lock::SharedRwLock;
|
||||||
|
@ -113,7 +113,7 @@ fn test_parse_stylesheet() {
|
||||||
(
|
(
|
||||||
PropertyDeclaration::Custom(CustomDeclaration {
|
PropertyDeclaration::Custom(CustomDeclaration {
|
||||||
name: Atom::from("a"),
|
name: Atom::from("a"),
|
||||||
value: DeclaredValueOwned::CSSWideKeyword(CSSWideKeyword::Inherit),
|
value: CustomDeclarationValue::CSSWideKeyword(CSSWideKeyword::Inherit),
|
||||||
}),
|
}),
|
||||||
Importance::Important,
|
Importance::Important,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue