mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Thread ParseError return values through CSS parsing.
This commit is contained in:
parent
58e39bfffa
commit
27ae1ef2e7
121 changed files with 2133 additions and 1505 deletions
|
@ -22,7 +22,7 @@ mod stylesheet;
|
|||
pub mod supports_rule;
|
||||
pub mod viewport_rule;
|
||||
|
||||
use cssparser::{parse_one_rule, Parser};
|
||||
use cssparser::{parse_one_rule, Parser, ParserInput};
|
||||
use error_reporting::NullReporter;
|
||||
use parser::{ParserContext, PARSING_MODE_DEFAULT};
|
||||
use shared_lock::{DeepCloneWithLock, Locked, SharedRwLock, SharedRwLockReadGuard, ToCssWithGuard};
|
||||
|
@ -234,7 +234,8 @@ impl CssRule {
|
|||
parent_stylesheet.quirks_mode
|
||||
);
|
||||
|
||||
let mut input = Parser::new(css);
|
||||
let mut input = ParserInput::new(css);
|
||||
let mut input = Parser::new(&mut input);
|
||||
|
||||
let mut guard = parent_stylesheet.namespaces.write();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue