mirror of
https://github.com/servo/servo.git
synced 2025-09-11 23:48:21 +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
|
@ -18,7 +18,7 @@ use style::shared_lock::SharedRwLock;
|
|||
use style::stylesheets::StyleRule;
|
||||
use style::stylist::{Stylist, Rule};
|
||||
use style::stylist::needs_revalidation_for_testing;
|
||||
use style::thread_state;
|
||||
use style::thread_state::{self, ThreadState};
|
||||
|
||||
/// Helper method to get some Rules from selector strings.
|
||||
/// Each sublist of the result contains the Rules for one StyleRule.
|
||||
|
@ -185,7 +185,7 @@ fn mock_stylist() -> Stylist {
|
|||
|
||||
#[test]
|
||||
fn test_stylist_device_accessors() {
|
||||
thread_state::initialize(thread_state::LAYOUT);
|
||||
thread_state::initialize(ThreadState::LAYOUT);
|
||||
let stylist = mock_stylist();
|
||||
assert_eq!(stylist.device().media_type(), MediaType::screen());
|
||||
let mut stylist_mut = mock_stylist();
|
||||
|
@ -194,7 +194,7 @@ fn test_stylist_device_accessors() {
|
|||
|
||||
#[test]
|
||||
fn test_stylist_rule_tree_accessors() {
|
||||
thread_state::initialize(thread_state::LAYOUT);
|
||||
thread_state::initialize(ThreadState::LAYOUT);
|
||||
let stylist = mock_stylist();
|
||||
stylist.rule_tree();
|
||||
stylist.rule_tree().root();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue