aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/css.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2017-04-28 00:35:22 -0400
committerJosh Matthews <josh@joshmatthews.net>2017-06-09 16:46:25 -0400
commit27ae1ef2e7d78f38e744f2e00e177302f2d6aa82 (patch)
tree3686de591e57777845fea4fd41aed88dc85681fe /components/script/dom/css.rs
parent58e39bfffa5770a0467b6bce680d50b42068a11b (diff)
downloadservo-27ae1ef2e7d78f38e744f2e00e177302f2d6aa82.tar.gz
servo-27ae1ef2e7d78f38e744f2e00e177302f2d6aa82.zip
Thread ParseError return values through CSS parsing.
Diffstat (limited to 'components/script/dom/css.rs')
-rw-r--r--components/script/dom/css.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/css.rs b/components/script/dom/css.rs
index 521c09ed4c2..66f522b2371 100644
--- a/components/script/dom/css.rs
+++ b/components/script/dom/css.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use cssparser::{Parser, serialize_identifier};
+use cssparser::{Parser, ParserInput, serialize_identifier};
use dom::bindings::codegen::Bindings::WindowBinding::WindowBinding::WindowMethods;
use dom::bindings::error::Fallible;
use dom::bindings::reflector::Reflector;
@@ -39,7 +39,8 @@ impl CSS {
/// https://drafts.csswg.org/css-conditional/#dom-css-supports
pub fn Supports_(win: &Window, condition: DOMString) -> bool {
- let mut input = Parser::new(&condition);
+ let mut input = ParserInput::new(&condition);
+ let mut input = Parser::new(&mut input);
let cond = parse_condition_or_declaration(&mut input);
if let Ok(cond) = cond {
let url = win.Document().url();