Bug 520474: Remove unused helper function IsMenuPopup from nsContainerFrame.cpp. r=dbaron
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sun, 04 Oct 2009 18:01:31 -0700
changeset 33449 9cdacc9f7c81abaa28e02552c50757a0b4076504
parent 33448 f39c6fb004c9ddaf6f7cde08e422a65c750d1bfd
child 33450 f9360b851fadd99f59c6c4a5ed8857ef3f196aa8
push idunknown
push userunknown
push dateunknown
reviewersdbaron
bugs520474
milestone1.9.3a1pre
Bug 520474: Remove unused helper function IsMenuPopup from nsContainerFrame.cpp. r=dbaron
layout/generic/nsContainerFrame.cpp
--- a/layout/generic/nsContainerFrame.cpp
+++ b/layout/generic/nsContainerFrame.cpp
@@ -449,34 +449,16 @@ nsContainerFrame::PositionFrameView(nsIF
     // explicitly
     return;
   }
 
   pt += aKidFrame->GetPosition();
   vm->MoveViewTo(view, pt.x, pt.y);
 }
 
-static PRBool
-IsMenuPopup(nsIFrame *aFrame)
-{
-  nsIAtom *frameType = aFrame->GetType();
-
-  // We're a menupopup if we're the list control frame dropdown for a combobox.
-  if (frameType == nsGkAtoms::listControlFrame) {
-    nsListControlFrame *listControlFrame = static_cast<nsListControlFrame*>(aFrame);
-      
-    if (listControlFrame) {
-      return listControlFrame->IsInDropDownMode();
-    }
-  }
-
-  // ... or if we're a XUL menupopup frame.
-  return (frameType == nsGkAtoms::menuPopupFrame);
-}
-
 static nsIWidget*
 GetPresContextContainerWidget(nsPresContext* aPresContext)
 {
   nsCOMPtr<nsISupports> container = aPresContext->Document()->GetContainer();
   nsCOMPtr<nsIBaseWindow> baseWindow = do_QueryInterface(container);
   if (!baseWindow)
     return nsnull;