mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Move comment to a closer location.
This commit is contained in:
parent
62310d9bd5
commit
bd10081919
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue