mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
style: Move the StyleSheetSet into the Stylist.
This will allow tracking whether there have been only additions to the stylesheet set, and in that case don't destroy and completely rebuild the invalidation map.
This commit is contained in:
parent
02b203891f
commit
cbf388a5fd
7 changed files with 399 additions and 316 deletions
|
@ -279,7 +279,11 @@ impl StylesheetInDocument for Stylesheet {
|
|||
/// A simple wrapper over an `Arc<Stylesheet>`, with pointer comparison, and
|
||||
/// suitable for its use in a `StylesheetSet`.
|
||||
#[derive(Clone)]
|
||||
pub struct DocumentStyleSheet(pub Arc<Stylesheet>);
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
pub struct DocumentStyleSheet(
|
||||
#[cfg_attr(feature = "servo", ignore_heap_size_of = "Arc")]
|
||||
pub Arc<Stylesheet>
|
||||
);
|
||||
|
||||
impl PartialEq for DocumentStyleSheet {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue