Support changing a window with tracked occlusion while it's added to a root.
Previously, a DCHECK failure occurred if a WindowObserver or a LayoutManager changed a tracked window after Window::AddChild() added it to a root but before WindowOcclusionTracker::OnWindowAddedToRootWindow was notified. With this CL, the DCHECK is replaced with an early return. We rely on WindowOcclusionTracker::OnWindowAddedToRootWindow to mark the new root as dirty shortly after the early return. Bug: 668690 Change-Id: I0030869c01bb2955bcd8c31b7e5212cb404dc794 Reviewed-on: https://chromium-review.googlesource.com/804120 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by:Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#521405}
Showing
Please register or sign in to comment