From 7097ae01c010ea9eb5fd9397bfeedab6d0286102 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Thu, 17 Jan 2008 07:06:43 +0000 Subject: [PATCH] Fix bustage from bug 405512 by removing unneeded |if| check. git-svn-id: svn://10.0.0.236/trunk@243348 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/cocoa/nsChildView.mm | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mozilla/widget/src/cocoa/nsChildView.mm b/mozilla/widget/src/cocoa/nsChildView.mm index 35d54a75917..8ee437971e6 100644 --- a/mozilla/widget/src/cocoa/nsChildView.mm +++ b/mozilla/widget/src/cocoa/nsChildView.mm @@ -2457,16 +2457,14 @@ NSEvent* gLastDragEvent = nil; if (menuRollup) { nsAutoTArray widgetChain; menuRollup->GetSubmenuWidgetChain(&widgetChain); - if (widgetChain) { - for (PRUint32 i = 0; i < widgetChain.Length(); i++) { - nsIWidget* widget = widgetChain[i]; - NSWindow* currWindow = (NSWindow*)widget->GetNativeData(NS_NATIVE_WINDOW); - if (nsCocoaUtils::IsEventOverWindow(theEvent, currWindow)) { - rollup = PR_FALSE; - break; - } - } // foreach parent menu widget - } + for (PRUint32 i = 0; i < widgetChain.Length(); i++) { + nsIWidget* widget = widgetChain[i]; + NSWindow* currWindow = (NSWindow*)widget->GetNativeData(NS_NATIVE_WINDOW); + if (nsCocoaUtils::IsEventOverWindow(theEvent, currWindow)) { + rollup = PR_FALSE; + break; + } + } // foreach parent menu widget } // if rollup listener knows about menus // if we've determined that we should still rollup, do it.