mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
commit
806584da9a
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ impl<'a> ParserContext<'a> {
|
||||||
pub fn new_for_cssom(url_data: &'a UrlExtraData,
|
pub fn new_for_cssom(url_data: &'a UrlExtraData,
|
||||||
error_reporter: &'a ParseErrorReporter)
|
error_reporter: &'a ParseErrorReporter)
|
||||||
-> ParserContext<'a> {
|
-> ParserContext<'a> {
|
||||||
Self::new(Origin::User, url_data, error_reporter)
|
Self::new(Origin::Author, url_data, error_reporter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue