mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Derive MallocSizeOf for QuirksMode
This commit is contained in:
parent
2350f0e3d1
commit
542699691e
3 changed files with 7 additions and 2 deletions
|
@ -778,6 +778,12 @@ impl<Impl: selectors::parser::SelectorImpl> MallocSizeOf
|
|||
}
|
||||
}
|
||||
|
||||
impl MallocSizeOf for selectors::context::QuirksMode {
|
||||
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize {
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
impl MallocSizeOf for Void {
|
||||
#[inline]
|
||||
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize {
|
||||
|
|
|
@ -30,7 +30,6 @@ where
|
|||
pub data: CascadeData,
|
||||
/// The quirks mode of the last stylesheet flush, used because XBL sucks and
|
||||
/// we should really fix it, see bug 1406875.
|
||||
#[ignore_malloc_size_of = "XXX"]
|
||||
pub quirks_mode: QuirksMode,
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ use crate::selector_map::{PrecomputedHashMap, PrecomputedHashSet, SelectorMap, S
|
|||
use crate::selector_parser::{PerPseudoElementMap, PseudoElement, SelectorImpl, SnapshotMap};
|
||||
use crate::shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards};
|
||||
use crate::stylesheet_set::{DataValidity, DocumentStylesheetSet, SheetRebuildKind};
|
||||
use crate::stylesheet_set::{DocumentStylesheetFlusher, SheetCollectionFlusher, StylesheetSet};
|
||||
use crate::stylesheet_set::{DocumentStylesheetFlusher, SheetCollectionFlusher};
|
||||
use crate::stylesheets::keyframes_rule::KeyframesAnimation;
|
||||
use crate::stylesheets::viewport_rule::{self, MaybeNew, ViewportRule};
|
||||
use crate::stylesheets::StyleRule;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue