Change to convert Widget and Gfx into component DLLs on Mac, bug 94434. r=pchen, sr=beard/darin

This commit is contained in:
sfraser%netscape.com 2006-02-10 22:49:10 +00:00
Родитель 75381ccd6e
Коммит 074ac3b52d
4 изменённых файлов: 4 добавлений и 22 удалений

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

@ -69,7 +69,6 @@
PRUint32 nsDeviceContextMac::mPixelsPerInch = 96;
PRBool nsDeviceContextMac::mDisplayVerySmallFonts = true;
PRUint32 nsDeviceContextMac::sNumberOfScreens = 0;
@ -969,25 +968,6 @@ PRUint32 nsDeviceContextMac::GetScreenResolution()
return mPixelsPerInch;
}
PRBool nsDeviceContextMac::DisplayVerySmallFonts()
{
static PRBool initialized = PR_FALSE;
if (initialized)
return mDisplayVerySmallFonts;
initialized = PR_TRUE;
nsresult rv;
nsCOMPtr<nsIPref> prefs(do_GetService(kPrefCID, &rv));
if (NS_SUCCEEDED(rv) && prefs) {
PRBool boolVal;
if (NS_SUCCEEDED(prefs->GetBoolPref("browser.display_very_small_fonts", &boolVal))) {
mDisplayVerySmallFonts = boolVal;
}
}
return mDisplayVerySmallFonts;
}
#pragma mark -
//------------------------------------------------------------------------

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

@ -111,11 +111,9 @@ public:
private:
static PRUint32 mPixelsPerInch;
static PRBool mDisplayVerySmallFonts;
static PRUint32 sNumberOfScreens; // how many screens we have.
public:
static PRUint32 GetScreenResolution();
static PRBool DisplayVerySmallFonts();
};

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

@ -116,6 +116,8 @@ NS_IMETHODIMP nsDeviceContextSpecX::Init(PRBool aQuiet)
if (! aQuiet)
{
::InitCursor();
Boolean accepted = false;
status = ::PMPrintDialog(mPrintSettings, mPageFormat, &accepted);
if (! accepted)

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

@ -98,6 +98,8 @@ nsPrintOptionsX::ShowNativeDialog(void)
Boolean validated;
::PMValidatePageFormat(mPageFormat, &validated);
::InitCursor();
Boolean accepted = false;
status = ::PMPageSetupDialog(mPageFormat, &accepted);