script: Add CSSImportRule WebIDL interface.

This commit is contained in:
Emilio Cobos Álvarez 2016-12-16 12:13:32 +01:00
parent ca93a2dcec
commit b86aa41568
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
6 changed files with 77 additions and 1 deletions

View file

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