mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Cleanup unused style traversal flags.
Some of these were unused, some of them were only used in combination with others, so I've unified them. In particular, Forgetful and ClearAnimationOnlyDirtyDescendants were used only together for a very specific task (the final animation traversal), so I merged them into something that has that name. ClearDirtyBits was unused, so I removed along with some code that would no longer be called. Differential Revision: https://phabricator.services.mozilla.com/D25454
This commit is contained in:
parent
a7636010ee
commit
fce58015d6
5 changed files with 10 additions and 60 deletions
|
@ -642,15 +642,6 @@ pub trait TElement:
|
|||
self.unset_dirty_descendants();
|
||||
}
|
||||
|
||||
/// Clear all element flags related to dirtiness.
|
||||
///
|
||||
/// In Gecko, this corresponds to the regular dirty descendants bit, the
|
||||
/// animation-only dirty descendants bit, the lazy frame construction bit,
|
||||
/// and the lazy frame construction descendants bit.
|
||||
unsafe fn clear_dirty_bits(&self) {
|
||||
self.unset_dirty_descendants();
|
||||
}
|
||||
|
||||
/// Returns true if this element is a visited link.
|
||||
///
|
||||
/// Servo doesn't support visited styles yet.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue