mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -1423,16 +1423,6 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
unsafe fn clear_dirty_bits(&self) {
|
||||
self.unset_flags(
|
||||
ELEMENT_HAS_DIRTY_DESCENDANTS_FOR_SERVO as u32 |
|
||||
ELEMENT_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO as u32 |
|
||||
NODE_DESCENDANTS_NEED_FRAMES as u32 |
|
||||
NODE_NEEDS_FRAME as u32,
|
||||
)
|
||||
}
|
||||
|
||||
fn is_visited_link(&self) -> bool {
|
||||
self.state().intersects(ElementState::IN_VISITED_STATE)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue