Sort the cached class list in ValidationInfo.

MozReview-Commit-ID: 3vsfP5ECzds
This commit is contained in:
Bobby Holley 2017-05-30 11:32:16 -07:00
parent c018340a13
commit 6d8455a916
2 changed files with 11 additions and 2 deletions

View file

@ -966,7 +966,9 @@ impl Stylist {
assert_eq!(declaration.level, CascadeLevel::PresHints);
}
}
// Never share style for elements with preshints
// Note the existence of presentational attributes so that the
// style sharing cache can avoid re-querying them if they don't
// exist.
context.relations |= AFFECTED_BY_PRESENTATIONAL_HINTS;
}
debug!("preshints: {:?}", context.relations);