mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Do a better job of detecting where there are transitions.
The current code thinks that every element has transitions.
This commit is contained in:
parent
cceaf7c619
commit
fbdfbb1dfa
3 changed files with 20 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue