mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
s/CachedStyleSharingData/ValidationData.
I still think CachedStyleSharingData should be the name, but not going to fight over it.
This commit is contained in:
parent
0adc02a317
commit
7db2776348
3 changed files with 37 additions and 34 deletions
|
@ -21,7 +21,7 @@ use font_metrics::FontMetricsProvider;
|
|||
use selector_parser::SnapshotMap;
|
||||
use selectors::matching::ElementSelectorFlags;
|
||||
use shared_lock::StylesheetGuards;
|
||||
use sharing::{CachedStyleSharingData, StyleSharingCandidateCache};
|
||||
use sharing::{ValidationData, StyleSharingCandidateCache};
|
||||
use std::fmt;
|
||||
use std::ops::Add;
|
||||
#[cfg(feature = "servo")] use std::sync::Mutex;
|
||||
|
@ -165,7 +165,7 @@ pub struct CurrentElementInfo {
|
|||
/// Whether the element is being styled for the first time.
|
||||
is_initial_style: bool,
|
||||
/// Lazy cache of the different data used for style sharing.
|
||||
pub cached_style_sharing_data: CachedStyleSharingData,
|
||||
pub validation_data: ValidationData,
|
||||
/// A Vec of possibly expired animations. Used only by Servo.
|
||||
#[allow(dead_code)]
|
||||
pub possibly_expired_animations: Vec<PropertyAnimation>,
|
||||
|
@ -463,7 +463,7 @@ impl<E: TElement> ThreadLocalStyleContext<E> {
|
|||
self.current_element_info = Some(CurrentElementInfo {
|
||||
element: element.as_node().opaque(),
|
||||
is_initial_style: !data.has_styles(),
|
||||
cached_style_sharing_data: CachedStyleSharingData::new(),
|
||||
validation_data: ValidationData::new(),
|
||||
possibly_expired_animations: Vec::new(),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue