mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Further changes required by Servo
This commit is contained in:
parent
060d74ba3b
commit
60e206143c
8 changed files with 21 additions and 46 deletions
|
@ -6,12 +6,11 @@
|
|||
//!
|
||||
//! [import]: https://drafts.csswg.org/css-cascade-3/#at-import
|
||||
|
||||
use crate::context::QuirksMode;
|
||||
use crate::media_queries::MediaList;
|
||||
use crate::shared_lock::{DeepCloneParams, DeepCloneWithLock};
|
||||
use crate::shared_lock::{SharedRwLock, SharedRwLockReadGuard, ToCssWithGuard};
|
||||
use crate::str::CssStringWriter;
|
||||
use crate::stylesheets::{CssRule, Origin, StylesheetInDocument};
|
||||
use crate::stylesheets::{CssRule, StylesheetInDocument};
|
||||
use crate::values::CssUrl;
|
||||
use cssparser::SourceLocation;
|
||||
use std::fmt::{self, Write};
|
||||
|
@ -112,7 +111,7 @@ impl ImportSheet {
|
|||
|
||||
/// Returns the rules for this import rule.
|
||||
pub fn rules<'a>(&'a self, guard: &'a SharedRwLockReadGuard) -> &'a [CssRule] {
|
||||
self.0.rules()
|
||||
self.0.rules(guard)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -453,6 +453,7 @@ pub struct Stylist {
|
|||
stylesheets: StylistStylesheetSet,
|
||||
|
||||
/// A cache of CascadeDatas for AuthorStylesheetSets (i.e., shadow DOM).
|
||||
#[cfg_attr(feature = "servo", ignore_malloc_size_of = "XXX: how to handle this?")]
|
||||
author_data_cache: CascadeDataCache<CascadeData>,
|
||||
|
||||
/// If true, the quirks-mode stylesheet is applied.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue