oops, checked in too much code, so removing it along with some #if 0's. r=saari.

This commit is contained in:
pinkerton%netscape.com 2000-02-15 08:46:19 +00:00
Родитель d85a8bf169
Коммит 45ef04ec47
1 изменённых файлов: 1 добавлений и 25 удалений

Просмотреть файл

@ -324,19 +324,6 @@ nsMenuPopupFrame::SyncViewWithFrame(nsIPresContext* aPresContext,
nsRect parentRect;
aFrame->GetRect(parentRect);
#if 0
const nsStyleDisplay* disp;
GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&) disp);
PRBool viewIsVisible = (NS_STYLE_VISIBILITY_VISIBLE == disp->mVisible);
nsViewVisibility oldVisibility;
view->GetVisibility(oldVisibility);
PRBool viewWasVisible = (oldVisibility == nsViewVisibility_kShow);
if (viewWasVisible && (! viewIsVisible)) {
view->SetVisibility(nsViewVisibility_kHide);
}
#endif
float p2t, t2p;
aPresContext->GetScaledPixelsToTwips(&p2t);
@ -473,18 +460,7 @@ nsMenuPopupFrame::SyncViewWithFrame(nsIPresContext* aPresContext,
nsCOMPtr<nsIPresShell> myShell;
mPresContext->GetShell(getter_AddRefs(myShell));
myShell->ProcessReflowCommands ( PR_FALSE );
nsAutoString shouldDisplay;
mContent->GetAttribute(kNameSpaceID_None, nsXULAtoms::menutobedisplayed, shouldDisplay);
if ( shouldDisplay.Equals("true") )
mContent->SetAttribute(kNameSpaceID_None, nsXULAtoms::menuactive, "true", PR_TRUE);
#if 0
if ((! viewWasVisible) && viewIsVisible) {
view->SetVisibility(nsViewVisibility_kShow);
}
#endif
return NS_OK;
}