mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
Fix unit tests.
This commit is contained in:
parent
848a6203de
commit
14bda8078e
4 changed files with 10 additions and 128 deletions
|
@ -12,7 +12,7 @@ use style::media_queries::MediaList;
|
|||
use style::properties::{longhands, Importance, PropertyDeclaration, PropertyDeclarationBlock};
|
||||
use style::rule_tree::{CascadeLevel, RuleTree, StrongRuleNode, StyleSource};
|
||||
use style::shared_lock::{SharedRwLock, StylesheetGuards};
|
||||
use style::stylesheets::{CssRule, Origin, Stylesheet};
|
||||
use style::stylesheets::{AllowImportRules, CssRule, Origin, Stylesheet};
|
||||
use style::thread_state::{self, ThreadState};
|
||||
use test::{self, Bencher};
|
||||
|
||||
|
@ -67,6 +67,7 @@ fn parse_rules(lock: &SharedRwLock, css: &str) -> Vec<(StyleSource, CascadeLevel
|
|||
Some(&ErrorringErrorReporter),
|
||||
QuirksMode::NoQuirks,
|
||||
0,
|
||||
AllowImportRules::Yes,
|
||||
);
|
||||
let guard = s.shared_lock.read();
|
||||
let rules = s.contents.rules.read_with(&guard);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue