mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 429315. Relanding. Don't reparent widgets that are supposed to be toplevel. r+sr=bzbarsky,a=beltzner
This commit is contained in:
parent
a091e3d5c6
commit
7022cf7841
@ -1428,7 +1428,8 @@ void nsViewManager::ReparentChildWidgets(nsIView* aView, nsIWidget *aNewWidget)
|
||||
// to do for the view and its descendants
|
||||
nsIWidget* widget = aView->GetWidget();
|
||||
nsIWidget* parentWidget = widget->GetParent();
|
||||
if (parentWidget != aNewWidget) {
|
||||
// Toplevel widgets should not be reparented!
|
||||
if (parentWidget && parentWidget != aNewWidget) {
|
||||
#ifdef DEBUG
|
||||
nsresult rv =
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user