зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1506988 - Set the important rule change flag when a newly important rule is inserted. r=birtles
Without this change an assertion checking IsInStyleRefresh() in EffectCompositor::PostRestyleForAnimation will be hit when we call FindAnimationsForCompositor from RestyleManager::DoProcessPendingRestyles that will be introduced in a subsequent commit in this series. I wrote a crash test which causes an assertion in KeyframeEffect::CanThrottle() without the subsequent commit, but we need more work in display item stuff to make the assertion won't happen (bug 1508466). Depends on D12367 Differential Revision: https://phabricator.services.mozilla.com/D12368 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
44bbfc6a6a
Коммит
1c6d6276f9
|
@ -453,6 +453,7 @@ impl RuleTree {
|
|||
StyleSource::from_declarations(pdb.clone_arc()),
|
||||
level,
|
||||
);
|
||||
*important_rules_changed = true;
|
||||
}
|
||||
} else {
|
||||
if pdb.read_with(level.guard(guards)).any_normal() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче