style: Move cached media query results into per-origin data.

This commit is contained in:
Cameron McCormack 2017-08-12 15:46:57 +08:00
parent f9d1a0e2d1
commit db6a09f24f
2 changed files with 29 additions and 13 deletions

View file

@ -52,6 +52,7 @@ impl ToMediaListKey for MediaRule {}
/// A struct that holds the result of a media query evaluation pass for the
/// media queries that evaluated successfully.
#[derive(Debug)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub struct EffectiveMediaQueryResults {
/// The set of media lists that matched last time.