зеркало из https://github.com/mozilla/pjs.git
Bug 675561 - Calls to GetMetric should pass a pointer to PRInt32, not PRBool, r=roc
This commit is contained in:
Родитель
a9e7ba34c4
Коммит
7ff158aadb
|
@ -187,7 +187,7 @@ nsFormControlFrame::GetUsableScreenRect(nsPresContext* aPresContext)
|
|||
nsRect screen;
|
||||
|
||||
nsDeviceContext *context = aPresContext->DeviceContext();
|
||||
PRBool dropdownCanOverlapOSBar = PR_FALSE;
|
||||
PRInt32 dropdownCanOverlapOSBar = PR_FALSE;
|
||||
nsILookAndFeel *lookAndFeel = aPresContext->LookAndFeel();
|
||||
lookAndFeel->GetMetric(nsILookAndFeel::eMetric_MenusCanOverlapOSBar,
|
||||
dropdownCanOverlapOSBar);
|
||||
|
|
|
@ -1463,7 +1463,7 @@ nsGfxScrollFrameInner::nsGfxScrollFrameInner(nsContainerFrame* aOuter,
|
|||
, mShouldBuildLayer(PR_FALSE)
|
||||
{
|
||||
// lookup if we're allowed to overlap the content from the look&feel object
|
||||
PRBool canOverlap;
|
||||
PRInt32 canOverlap;
|
||||
nsPresContext* presContext = mOuter->PresContext();
|
||||
presContext->LookAndFeel()->
|
||||
GetMetric(nsILookAndFeel::eMetric_ScrollbarsCanOverlapContent, canOverlap);
|
||||
|
|
|
@ -148,7 +148,7 @@ nsMenuPopupFrame::Init(nsIContent* aContent,
|
|||
|
||||
// lookup if we're allowed to overlap the OS bar (menubar/taskbar) from the
|
||||
// look&feel object
|
||||
PRBool tempBool;
|
||||
PRInt32 tempBool;
|
||||
presContext->LookAndFeel()->
|
||||
GetMetric(nsILookAndFeel::eMetric_MenusCanOverlapOSBar, tempBool);
|
||||
mMenuCanOverlapOSBar = tempBool;
|
||||
|
|
|
@ -2090,7 +2090,7 @@ nsXULPopupManager::IsValidMenuItem(nsPresContext* aPresContext,
|
|||
return PR_FALSE;
|
||||
}
|
||||
|
||||
PRBool skipNavigatingDisabledMenuItem = PR_TRUE;
|
||||
PRInt32 skipNavigatingDisabledMenuItem = PR_TRUE;
|
||||
if (aOnPopup) {
|
||||
aPresContext->LookAndFeel()->
|
||||
GetMetric(nsILookAndFeel::eMetric_SkipNavigatingDisabledMenuItem,
|
||||
|
|
Загрузка…
Ссылка в новой задаче