Auto merge of #16247 - servo:for_cssom, r=jdm

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.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16247)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-04-03 17:10:50 -05:00 committed by GitHub
commit 806584da9a

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)
}
}