mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Miscellaneous build / tidy fixes.
This commit is contained in:
parent
5158f65810
commit
31e8e418ea
66 changed files with 566 additions and 294 deletions
|
@ -39,7 +39,7 @@ use style::attr::AttrValue;
|
|||
use style::media_queries::MediaList;
|
||||
use style::parser::ParserContext as CssParserContext;
|
||||
use style::str::HTML_SPACE_CHARACTERS;
|
||||
use style::stylesheets::{CssRuleType, Stylesheet};
|
||||
use style::stylesheets::{CssRuleType, Origin, Stylesheet};
|
||||
use style_traits::ParsingMode;
|
||||
|
||||
#[derive(Clone, Copy, JSTraceable, MallocSizeOf, PartialEq)]
|
||||
|
@ -310,7 +310,8 @@ impl HTMLLinkElement {
|
|||
// FIXME(emilio): This looks somewhat fishy, since we use the context
|
||||
// only to parse the media query list, CssRuleType::Media doesn't make
|
||||
// much sense.
|
||||
let context = CssParserContext::new_for_cssom(
|
||||
let context = CssParserContext::new(
|
||||
Origin::Author,
|
||||
&doc_url,
|
||||
Some(CssRuleType::Media),
|
||||
ParsingMode::DEFAULT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue