[web][upstream] Optimize InactiveElements deactivation (#37712)

This commit is contained in:
Ferhat 2019-08-07 09:55:37 -07:00 committed by GitHub
parent 4cf1a3504b
commit a32d1ccdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1751,7 +1751,7 @@ class _InactiveElements {
}
}
void _deactivateRecursively(Element element) {
static void _deactivateRecursively(Element element) {
assert(element._debugLifecycleState == _ElementLifecycle.active);
element.deactivate();
assert(element._debugLifecycleState == _ElementLifecycle.inactive);