mirror of
https://github.com/servo/servo.git
synced 2025-08-18 20:05:34 +01:00
Update bitflags to 1.0 in every servo crate
It still needs dependencies update to remove all the other bitflags versions.
This commit is contained in:
parent
4cf2ce66fc
commit
e8e2d0a4b2
142 changed files with 1685 additions and 1635 deletions
|
@ -13,7 +13,7 @@ use style::properties::{longhands, Importance, PropertyDeclaration, PropertyDecl
|
|||
use style::rule_tree::{CascadeLevel, RuleTree, StrongRuleNode, StyleSource};
|
||||
use style::shared_lock::SharedRwLock;
|
||||
use style::stylesheets::{Origin, Stylesheet, CssRule};
|
||||
use style::thread_state;
|
||||
use style::thread_state::{self, ThreadState};
|
||||
use test::{self, Bencher};
|
||||
|
||||
struct ErrorringErrorReporter;
|
||||
|
@ -89,7 +89,7 @@ fn test_insertion_style_attribute(rule_tree: &RuleTree, rules: &[(StyleSource, C
|
|||
#[bench]
|
||||
fn bench_insertion_basic(b: &mut Bencher) {
|
||||
let r = RuleTree::new();
|
||||
thread_state::initialize(thread_state::SCRIPT);
|
||||
thread_state::initialize(ThreadState::SCRIPT);
|
||||
|
||||
let rules_matched = parse_rules(
|
||||
".foo { width: 200px; } \
|
||||
|
@ -108,7 +108,7 @@ fn bench_insertion_basic(b: &mut Bencher) {
|
|||
#[bench]
|
||||
fn bench_insertion_basic_per_element(b: &mut Bencher) {
|
||||
let r = RuleTree::new();
|
||||
thread_state::initialize(thread_state::SCRIPT);
|
||||
thread_state::initialize(ThreadState::SCRIPT);
|
||||
|
||||
let rules_matched = parse_rules(
|
||||
".foo { width: 200px; } \
|
||||
|
@ -125,7 +125,7 @@ fn bench_insertion_basic_per_element(b: &mut Bencher) {
|
|||
#[bench]
|
||||
fn bench_expensive_insertion(b: &mut Bencher) {
|
||||
let r = RuleTree::new();
|
||||
thread_state::initialize(thread_state::SCRIPT);
|
||||
thread_state::initialize(ThreadState::SCRIPT);
|
||||
|
||||
// This test case tests a case where you style a bunch of siblings
|
||||
// matching the same rules, with a different style attribute each
|
||||
|
@ -148,7 +148,7 @@ fn bench_expensive_insertion(b: &mut Bencher) {
|
|||
#[bench]
|
||||
fn bench_insertion_basic_parallel(b: &mut Bencher) {
|
||||
let r = RuleTree::new();
|
||||
thread_state::initialize(thread_state::SCRIPT);
|
||||
thread_state::initialize(ThreadState::SCRIPT);
|
||||
|
||||
let rules_matched = parse_rules(
|
||||
".foo { width: 200px; } \
|
||||
|
@ -180,7 +180,7 @@ fn bench_insertion_basic_parallel(b: &mut Bencher) {
|
|||
#[bench]
|
||||
fn bench_expensive_insertion_parallel(b: &mut Bencher) {
|
||||
let r = RuleTree::new();
|
||||
thread_state::initialize(thread_state::SCRIPT);
|
||||
thread_state::initialize(ThreadState::SCRIPT);
|
||||
|
||||
let rules_matched = parse_rules(
|
||||
".foo { width: 200px; } \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue