mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix Servo build.
This commit is contained in:
parent
d9d9fed7d5
commit
083857a4b0
7 changed files with 56 additions and 25 deletions
|
@ -16,7 +16,7 @@ use dom::medialist::MediaList;
|
|||
use dom::window::Window;
|
||||
use dom_struct::dom_struct;
|
||||
use servo_arc::Arc;
|
||||
use style::media_queries::parse_media_query_list;
|
||||
use style::media_queries::MediaList as StyleMediaList;
|
||||
use style::parser::ParserContext;
|
||||
use style::shared_lock::{Locked, ToCssWithGuard};
|
||||
use style::stylesheets::{CssRuleType, MediaRule};
|
||||
|
@ -79,8 +79,11 @@ impl CSSMediaRule {
|
|||
ParsingMode::DEFAULT,
|
||||
quirks_mode);
|
||||
|
||||
let new_medialist = parse_media_query_list(&context, &mut input,
|
||||
window.css_error_reporter());
|
||||
let new_medialist = StyleMediaList::parse(
|
||||
&context,
|
||||
&mut input,
|
||||
window.css_error_reporter(),
|
||||
);
|
||||
let mut guard = self.cssconditionrule.shared_lock().write();
|
||||
|
||||
// Clone an Arc because we can’t borrow `guard` twice at the same time.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue