Bug 1298588 part 5. Store a ComputedValues on SharedStyleContext. r=bholley

This commit is contained in:
Boris Zbarsky 2017-01-04 13:41:47 -05:00
parent a5ac55c8ff
commit 56941d61a7
3 changed files with 12 additions and 0 deletions

View file

@ -13,6 +13,7 @@ use error_reporting::ParseErrorReporter;
use euclid::Size2D;
use matching::StyleSharingCandidateCache;
use parking_lot::RwLock;
use properties::ComputedValues;
use std::collections::HashMap;
use std::sync::{Arc, Mutex};
use std::sync::mpsc::Sender;
@ -82,6 +83,10 @@ pub struct SharedStyleContext {
/// The QuirksMode state which the document needs to be rendered with
pub quirks_mode: QuirksMode,
/// The default computed values to use for elements with no rules
/// applying to them.
pub default_computed_values: Arc<ComputedValues>,
}
/// A thread-local style context.