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:
Emilio Cobos Álvarez 2017-12-01 20:36:29 +01:00
parent 712d75af01
commit bea7b31445
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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)
}