Bug 675561 - Calls to GetMetric should pass a pointer to PRInt32, not PRBool, r=roc

This commit is contained in:
Michael Wu 2011-08-01 18:20:52 -07:00
Родитель a9e7ba34c4
Коммит 7ff158aadb
4 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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,