aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/data.rs')
-rw-r--r--components/style/data.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/components/style/data.rs b/components/style/data.rs
index e88a031d5ce..80f974f0354 100644
--- a/components/style/data.rs
+++ b/components/style/data.rs
@@ -4,28 +4,28 @@
//! Per-node data used in style calculation.
-use properties::ComputedValues;
+use properties::ComputedValuesStruct;
use selectors::parser::SelectorImpl;
use std::collections::HashMap;
use std::hash::BuildHasherDefault;
use std::sync::Arc;
use std::sync::atomic::AtomicIsize;
-pub struct PrivateStyleData<Impl: SelectorImpl, ConcreteComputedValues: ComputedValues> {
+pub struct PrivateStyleData<Impl: SelectorImpl> {
/// The results of CSS styling for this node.
- pub style: Option<Arc<ConcreteComputedValues>>,
+ pub style: Option<Arc<ComputedValuesStruct>>,
/// The results of CSS styling for each pseudo-element (if any).
- pub per_pseudo: HashMap<Impl::PseudoElement, Arc<ConcreteComputedValues>,
+ pub per_pseudo: HashMap<Impl::PseudoElement, Arc<ComputedValuesStruct>,
BuildHasherDefault<::fnv::FnvHasher>>,
/// Information needed during parallel traversals.
pub parallel: DomParallelInfo,
}
-impl<Impl, ConcreteComputedValues> PrivateStyleData<Impl, ConcreteComputedValues>
- where Impl: SelectorImpl, ConcreteComputedValues: ComputedValues {
- pub fn new() -> PrivateStyleData<Impl, ConcreteComputedValues> {
+impl<Impl> PrivateStyleData<Impl>
+ where Impl: SelectorImpl {
+ pub fn new() -> Self {
PrivateStyleData {
style: None,
per_pseudo: HashMap::with_hasher(Default::default()),