aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/node.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-16 22:58:52 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-10-10 17:02:27 -0700
commit2a790d06dd74b1de0c47d433c7fa3a9d8af03efc (patch)
tree83346e183c3bf7ef3d8d4edf554667bc263e73c4 /components/style/node.rs
parent878ece58da7f60b45e9230356ac7a5bbf7351e5b (diff)
downloadservo-2a790d06dd74b1de0c47d433c7fa3a9d8af03efc.tar.gz
servo-2a790d06dd74b1de0c47d433c7fa3a9d8af03efc.zip
Use Gecko's simpler Bloom filter instead of one based on hash
stretching. This preserves the usage of the Bloom filter throughout style recalc, but the implementation is rewritten. Provides a 15% improvement on Guardians of the Galaxy.
Diffstat (limited to 'components/style/node.rs')
-rw-r--r--components/style/node.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/style/node.rs b/components/style/node.rs
index 8a8930fdc81..8fc74d5738c 100644
--- a/components/style/node.rs
+++ b/components/style/node.rs
@@ -38,4 +38,5 @@ pub trait TElement<'a> : Copy {
fn get_disabled_state(self) -> bool;
fn get_enabled_state(self) -> bool;
fn has_class(self, name: &str) -> bool;
+ fn each_class(self, callback: |&Atom|);
}