mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Update Stylo to 2023-09-01 (#31609)
* Update Stylo to 2023-09-01 * Fixup for https://phabricator.services.mozilla.com/D184929 * Fixup for https://phabricator.services.mozilla.com/D184526 * Fixup for https://phabricator.services.mozilla.com/D184525 * Fixup for https://phabricator.services.mozilla.com/D185154 * Fixup for https://phabricator.services.mozilla.com/D184685 * Fixup for https://phabricator.services.mozilla.com/D185916 * Fixup for https://phabricator.services.mozilla.com/D185492 * Fixup for https://phabricator.services.mozilla.com/D186626 * Update test expectations
This commit is contained in:
parent
94c1f2c992
commit
c07484fcb6
67 changed files with 235 additions and 491 deletions
|
@ -14,6 +14,7 @@ use style::media_queries::{Device, MediaType};
|
|||
use style::properties::{CustomDeclaration, CustomDeclarationValue};
|
||||
use style::rule_tree::CascadeLevel;
|
||||
use style::stylesheets::layer_rule::LayerOrder;
|
||||
use style::stylist::Stylist;
|
||||
use test::{self, Bencher};
|
||||
|
||||
fn cascade(
|
||||
|
@ -37,7 +38,8 @@ fn cascade(
|
|||
Size2D::new(800., 600.),
|
||||
Scale::new(1.0),
|
||||
);
|
||||
let mut builder = CustomPropertiesBuilder::new(inherited, &device);
|
||||
let stylist = Stylist::new(device, QuirksMode::NoQuirks);
|
||||
let mut builder = CustomPropertiesBuilder::new(inherited, &stylist);
|
||||
|
||||
for declaration in &declarations {
|
||||
builder.cascade(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue