mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Skip snapshot handling during animation-only restyle.
This commit is contained in:
parent
f91126ba86
commit
9c05481923
2 changed files with 13 additions and 3 deletions
|
@ -241,6 +241,11 @@ impl ElementData {
|
|||
element: E,
|
||||
shared_context: &SharedStyleContext)
|
||||
{
|
||||
// In animation-only restyle we shouldn't touch snapshot at all.
|
||||
if shared_context.traversal_flags.for_animation_only() {
|
||||
return;
|
||||
}
|
||||
|
||||
use invalidation::element::invalidator::TreeStyleInvalidator;
|
||||
|
||||
debug!("invalidate_style_if_needed: {:?}, flags: {:?}, has_snapshot: {}, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue