mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
stylo: Add a mechanism to restrict media-features to UA and chrome sheets.
Reviewed-by: xidorn Bug: 1396066 MozReview-Commit-ID: 38jRV6mPbE3
This commit is contained in:
parent
04b7386070
commit
b0706d5cf0
2 changed files with 16 additions and 2 deletions
|
@ -130,6 +130,11 @@ impl<'a> ParserContext<'a> {
|
|||
};
|
||||
context.error_reporter.report_error(self.url_data, location, error)
|
||||
}
|
||||
|
||||
/// Returns whether this is a chrome stylesheets.
|
||||
pub fn in_chrome_stylesheet(&self) -> bool {
|
||||
self.url_data.is_chrome()
|
||||
}
|
||||
}
|
||||
|
||||
// XXXManishearth Replace all specified value parse impls with impls of this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue