style: Remove (mostly) unused has_current_styles.

MozReview-Commit-ID: DV9HfvbUjBY
This commit is contained in:
Emilio Cobos Álvarez 2017-07-22 14:53:57 +02:00
parent 55d9151dd3
commit 9d21f9e6ce
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 2 additions and 21 deletions

View file

@ -470,15 +470,6 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
/// Flags this element as having handled already its snapshot.
unsafe fn set_handled_snapshot(&self);
/// Returns whether the element's styles are up-to-date.
fn has_current_styles(&self, data: &ElementData) -> bool {
if self.has_snapshot() && !self.handled_snapshot() {
return false;
}
data.has_styles() && !data.has_invalidations()
}
/// Returns whether the element's styles are up-to-date for |traversal_flags|.
fn has_current_styles_for_traversal(
&self,