mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Add a missing fast-path in GeckoElement::each_class.
This shows up when inserting elements in the bloom filter.
This commit is contained in:
parent
712d75af01
commit
bea7b31445
1 changed files with 4 additions and 0 deletions
|
@ -1124,6 +1124,10 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
where
|
||||
F: FnMut(&Atom),
|
||||
{
|
||||
if !self.may_have_class() {
|
||||
return;
|
||||
}
|
||||
|
||||
snapshot_helpers::each_class(self.0, callback, Gecko_ClassOrClassList)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue