зеркало из https://github.com/mozilla/gecko-dev.git
Fix for mac xp menus not comming up at all.
This commit is contained in:
Родитель
ced3a2b195
Коммит
14c154301b
|
@ -535,8 +535,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure visibility is correct
|
// Make sure visibility is correct
|
||||||
vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow :
|
if (0 == (aFlags & NS_FRAME_NO_VISIBILITY)) {
|
||||||
nsViewVisibility_kHide);
|
vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow :
|
||||||
|
nsViewVisibility_kHide);
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure content transparency is correct
|
// Make sure content transparency is correct
|
||||||
if (viewIsVisible) {
|
if (viewIsVisible) {
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
|
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
|
||||||
#define NS_FRAME_NO_SIZE_VIEW 0x0004
|
#define NS_FRAME_NO_SIZE_VIEW 0x0004
|
||||||
#define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008
|
#define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008
|
||||||
|
#define NS_FRAME_NO_VISIBILITY 0x0010
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of a container frame.
|
* Implementation of a container frame.
|
||||||
|
|
|
@ -535,8 +535,10 @@ nsContainerFrame::SyncFrameViewAfterReflow(nsIPresContext* aPresContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure visibility is correct
|
// Make sure visibility is correct
|
||||||
vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow :
|
if (0 == (aFlags & NS_FRAME_NO_VISIBILITY)) {
|
||||||
nsViewVisibility_kHide);
|
vm->SetViewVisibility(aView, viewIsVisible ? nsViewVisibility_kShow :
|
||||||
|
nsViewVisibility_kHide);
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure content transparency is correct
|
// Make sure content transparency is correct
|
||||||
if (viewIsVisible) {
|
if (viewIsVisible) {
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
|
#define NS_FRAME_NO_MOVE_FRAME (0x0002 | NS_FRAME_NO_MOVE_VIEW)
|
||||||
#define NS_FRAME_NO_SIZE_VIEW 0x0004
|
#define NS_FRAME_NO_SIZE_VIEW 0x0004
|
||||||
#define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008
|
#define NS_FRAME_NO_MOVE_CHILD_VIEWS 0x0008
|
||||||
|
#define NS_FRAME_NO_VISIBILITY 0x0010
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of a container frame.
|
* Implementation of a container frame.
|
||||||
|
|
|
@ -188,7 +188,7 @@ nsMenuPopupFrame::Init(nsIPresContext* aPresContext,
|
||||||
void
|
void
|
||||||
nsMenuPopupFrame::GetLayoutFlags(PRUint32& aFlags)
|
nsMenuPopupFrame::GetLayoutFlags(PRUint32& aFlags)
|
||||||
{
|
{
|
||||||
aFlags = NS_FRAME_NO_SIZE_VIEW | NS_FRAME_NO_MOVE_VIEW /*| NS_FRAME_NO_MOVE_CHILD_VIEWS*/ ;
|
aFlags = NS_FRAME_NO_SIZE_VIEW | NS_FRAME_NO_MOVE_VIEW | NS_FRAME_NO_VISIBILITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool
|
PRBool
|
||||||
|
|
Загрузка…
Ссылка в новой задаче