mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove generation, remove filter pop, and add size tests.
This commit is contained in:
parent
ea6a61af59
commit
940cda1d15
8 changed files with 14 additions and 24 deletions
|
@ -25,9 +25,6 @@ pub struct PerDocumentStyleDataImpl {
|
|||
/// Rule processor.
|
||||
pub stylist: Arc<Stylist>,
|
||||
|
||||
/// Last restyle generation.
|
||||
pub last_restyle_generation: u32,
|
||||
|
||||
/// List of stylesheets, mirrored from Gecko.
|
||||
pub stylesheets: Vec<Arc<Stylesheet>>,
|
||||
|
||||
|
@ -67,7 +64,6 @@ impl PerDocumentStyleData {
|
|||
|
||||
PerDocumentStyleData(AtomicRefCell::new(PerDocumentStyleDataImpl {
|
||||
stylist: Arc::new(Stylist::new(device)),
|
||||
last_restyle_generation: 0,
|
||||
stylesheets: vec![],
|
||||
stylesheets_changed: true,
|
||||
new_animations_sender: new_anims_sender,
|
||||
|
@ -105,12 +101,6 @@ impl PerDocumentStyleDataImpl {
|
|||
self.stylesheets_changed = false;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn next_generation(&mut self) -> u32 {
|
||||
self.last_restyle_generation =
|
||||
self.last_restyle_generation.wrapping_add(1);
|
||||
self.last_restyle_generation
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl HasFFI for PerDocumentStyleData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue