diff options
Diffstat (limited to 'components/style/gecko/data.rs')
-rw-r--r-- | components/style/gecko/data.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/components/style/gecko/data.rs b/components/style/gecko/data.rs index 2b7cfc54a35..da334bfa4bf 100644 --- a/components/style/gecko/data.rs +++ b/components/style/gecko/data.rs @@ -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 { |