CSSOM bits for @supports: CSSConditionRule and CSSSupportsRule, with conditionText attribute

This commit is contained in:
Manish Goregaokar 2017-01-03 11:10:12 -08:00
parent 1b0842e228
commit b4a83b6cec
12 changed files with 199 additions and 5 deletions

View file

@ -99,6 +99,7 @@ use style::media_queries::MediaList;
use style::properties::PropertyDeclarationBlock;
use style::selector_parser::{PseudoElement, Snapshot};
use style::stylesheets::{CssRules, KeyframesRule, MediaRule, NamespaceRule, StyleRule, ImportRule};
use style::stylesheets::SupportsRule;
use style::values::specified::Length;
use style::viewport::ViewportRule;
use time::Duration;
@ -531,6 +532,12 @@ unsafe impl JSTraceable for RwLock<ImportRule> {
}
}
unsafe impl JSTraceable for RwLock<SupportsRule> {
unsafe fn trace(&self, _trc: *mut JSTracer) {
// Do nothing.
}
}
unsafe impl JSTraceable for RwLock<MediaRule> {
unsafe fn trace(&self, _trc: *mut JSTracer) {
// Do nothing.