Bug 588403. Part 2. Don't remove the area of popup widgets from the area to update on the parent widget. r=roc a=blocking final+

This commit is contained in:
Timothy Nikkel 2010-09-11 13:24:50 -05:00
parent a5e4490b95
commit 1f34543f41

View File

@ -609,7 +609,10 @@ nsViewManager::UpdateWidgetArea(nsView *aWidgetView, nsIWidget* aWidget,
NS_ASSERTION(view != aWidgetView, "will recur infinitely");
PRBool visible;
childWidget->IsVisible(visible);
if (view && visible && !IsWidgetDrawnByPlugin(childWidget, view)) {
nsWindowType type;
childWidget->GetWindowType(type);
if (view && visible && !IsWidgetDrawnByPlugin(childWidget, view) &&
type != eWindowType_popup) {
// Don't mess with views that are in completely different view
// manager trees
nsViewManager* viewManager = view->GetViewManager();