mirror of
https://github.com/servo/servo.git
synced 2025-06-30 12:03:38 +01:00
Add clear method for LonghandIdSet.
This commit is contained in:
parent
8061103594
commit
285da1b621
1 changed files with 8 additions and 0 deletions
|
@ -251,6 +251,14 @@ impl LonghandIdSet {
|
|||
self.storage[bit / 32] &= !(1 << (bit % 32));
|
||||
}
|
||||
|
||||
/// Clear all bits
|
||||
#[inline]
|
||||
pub fn clear(&mut self) {
|
||||
for cell in &mut self.storage {
|
||||
*cell = 0
|
||||
}
|
||||
}
|
||||
|
||||
/// Set the corresponding bit of TransitionProperty.
|
||||
/// This function will panic if TransitionProperty::All is given.
|
||||
pub fn set_transition_property_bit(&mut self, property: &TransitionProperty) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue