ParserContext::new_for_cssom is used for author origin, not user.

This probably doesn’t make any difference since the only thing we do
with this origin is test whether it is user-agent (for internal properties),
but this is more correct.
This commit is contained in:
Simon Sapin 2017-04-03 18:28:47 +02:00
parent 679b418937
commit 3ac0dd05cf

View file

@ -39,7 +39,7 @@ impl<'a> ParserContext<'a> {
pub fn new_for_cssom(url_data: &'a UrlExtraData,
error_reporter: &'a ParseErrorReporter)
-> ParserContext<'a> {
Self::new(Origin::User, url_data, error_reporter)
Self::new(Origin::Author, url_data, error_reporter)
}
}