Workaround DCHECK when propagating inertness to child frames.
When HTMLDialogElement::RemovedFrom updates inertness, we may hit the !node.NeedsDistributionRecalc() DCHECK in FlatTreeTraversal. Workaround this by calling UpdateDistributionForFlatTreeTraversal. We shouldn't UpdateDistribution during DOM mutation, but Shadow DOM v0 will be removed, at which point the UpdateDistribution can be removed. Bug: 895511 Change-Id: If8fb3a93acbfa54e819b36fd647e56357ab9fe6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1281223 Commit-Queue: Kevin McNee <mcnee@chromium.org> Reviewed-by:Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#700255}
Showing
Please register or sign in to comment