style: Move comment to a closer location.

This commit is contained in:
Emilio Cobos Álvarez 2017-07-14 09:23:00 +02:00
parent 62310d9bd5
commit bd10081919
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -771,13 +771,13 @@ where
context.thread_local.bloom_filter.assert_complete(element); context.thread_local.bloom_filter.assert_complete(element);
// Now that our bloom filter is set up, try the style sharing
// cache. If we get a match we can skip the rest of the work.
// This is only relevant for animations as of right now. // This is only relevant for animations as of right now.
important_rules_changed = true; important_rules_changed = true;
let mut target = StyleSharingTarget::new(element); let mut target = StyleSharingTarget::new(element);
// Now that our bloom filter is set up, try the style sharing
// cache.
match target.share_style_if_possible(context) { match target.share_style_if_possible(context) {
StyleWasShared(index, styles) => { StyleWasShared(index, styles) => {
context.thread_local.statistics.styles_shared += 1; context.thread_local.statistics.styles_shared += 1;