style: Fix servo build.

This commit is contained in:
Emilio Cobos Álvarez 2018-11-05 12:39:54 +01:00
parent 64e70e28fc
commit ac6f921588
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 17 additions and 3 deletions

View file

@ -4,7 +4,7 @@
use cssparser::{Parser, ParserInput};
use servo_arc::Arc;
use style::custom_properties::{Name, SpecifiedValue, CustomPropertiesMap, CustomPropertiesBuilder};
use style::custom_properties::{Name, SpecifiedValue, CustomPropertiesMap, CustomPropertiesBuilder, CssEnvironment};
use style::properties::CustomDeclarationValue;
use test::{self, Bencher};
@ -18,7 +18,8 @@ fn cascade(
(Name::from(name), SpecifiedValue::parse(&mut parser).unwrap())
}).collect::<Vec<_>>();
let mut builder = CustomPropertiesBuilder::new(inherited);
let env = CssEnvironment;
let mut builder = CustomPropertiesBuilder::new(inherited, &env);
for &(ref name, ref val) in &values {
builder.cascade(name, &CustomDeclarationValue::Value(val.clone()));