aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/bloom.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-05-17 00:12:28 +0200
committerOriol Brufau <obrufau@igalia.com>2023-05-17 02:12:21 +0200
commitb5dcb5c9610643cb534b1abdae885a792291659d (patch)
tree13851bb6f724510169617e40c99adc110e26c3c0 /components/style/bloom.rs
parente23a8bf0ad5fcfc23395b74dccb571fe360ee0bb (diff)
downloadservo-b5dcb5c9610643cb534b1abdae885a792291659d.tar.gz
servo-b5dcb5c9610643cb534b1abdae885a792291659d.zip
Further changes required by Servo
Diffstat (limited to 'components/style/bloom.rs')
-rw-r--r--components/style/bloom.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/style/bloom.rs b/components/style/bloom.rs
index d75abaa4f93..1840c780506 100644
--- a/components/style/bloom.rs
+++ b/components/style/bloom.rs
@@ -107,6 +107,7 @@ impl<E: TElement> PushedElement<E> {
/// We do this for attributes that are very common but not commonly used in
/// selectors.
#[inline]
+#[cfg(feature = "gecko")]
pub fn is_attr_name_excluded_from_filter(atom: &crate::Atom) -> bool {
*atom == atom!("class") || *atom == atom!("id") || *atom == atom!("style")
}
@@ -125,6 +126,7 @@ where
element.each_class(|class| f(class.get_hash()));
+ #[cfg(feature = "gecko")]
if static_prefs::pref!("layout.css.bloom-filter-attribute-names.enabled") {
element.each_attr_name(|name| {
if !is_attr_name_excluded_from_filter(name) {