Chromium Code Reviews
DescriptionFix bug where removed (but not deleted) windows are not reflected in the tree properly
When there are windows which are removed as children of some parent, and
they still exist, OnWindowDestroying is not called because the child window
was never destroyed. However, OnWindowTreeChanging is called, if
the target has an old_parent, aka the parent it is being removed from.
OnWindowTreeChanged is called if the target has a new_parent, aka the
parent it is being added to.
This CL removes nodes on OnWindowTreeChanging and adds them back in
OnWindowTreeChanged if necessary. Since we only want them to trigger once,
we check to see in either callback if the window that the callback is
being called on is the old_parent or the new_parent.
BUG=648701
Committed: https://crrev.com/f555669c992a0bf22b8994d6a6f5a3f27e9f32c4
Cr-Commit-Position: refs/heads/master@{#432366}
Patch Set 1 #Patch Set 2 : Create new child instead of using existing child #
Dependent Patchsets: Messages
Total messages: 16 (9 generated)
|
|||||||||||||||||||||||||||||||||||||