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/ba5ad2e37e2277f82d560caf172992d739e1b7c6
Cr-Commit-Position: refs/heads/master@{#432568}
Patch Set 1 #Patch Set 2 : Add test but disable on windows #
Dependent Patchsets: Messages
Total messages: 17 (11 generated)
|
|||||||||||||||||||||||||||||||||||||