mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Bug 1298588 part 5. Store a ComputedValues on SharedStyleContext. r=bholley
This commit is contained in:
parent
a5ac55c8ff
commit
56941d61a7
3 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue