mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Enable chrome-only CSS features in user stylesheets.
MozReview-Commit-ID: FJ4vTiOrotH Reviewed-by: heycam Bug: 1418963
This commit is contained in:
parent
b74e71fdd1
commit
c7a3c929f6
5 changed files with 52 additions and 29 deletions
|
@ -132,9 +132,9 @@ 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()
|
||||
/// Returns whether chrome-only rules should be parsed.
|
||||
pub fn chrome_rules_enabled(&self) -> bool {
|
||||
self.url_data.is_chrome() || self.stylesheet_origin == Origin::User
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue