Do a better job of detecting where there are transitions.

The current code thinks that every element has transitions.
This commit is contained in:
Bobby Holley 2017-04-09 18:29:17 +08:00
parent cceaf7c619
commit fbdfbb1dfa
3 changed files with 20 additions and 1 deletions

View file

@ -298,7 +298,7 @@ impl<E: TElement> StyleSharingCandidateCache<E> {
}
let box_style = style.get_box();
if box_style.transition_property_count() > 0 {
if box_style.specifies_transitions() {
debug!("Failing to insert to the cache: transitions");
return;
}