зеркало из https://github.com/mozilla/pjs.git
Bug 419125 - Part 1 - Minour cleanups of nsThebesDeviceContext; r+sr=vlad
This commit is contained in:
Родитель
56dd653636
Коммит
820d64c57f
|
@ -130,8 +130,6 @@ nsThebesDeviceContext::nsThebesDeviceContext()
|
||||||
mHeight = 0;
|
mHeight = 0;
|
||||||
mPrintingScale = 1.0f;
|
mPrintingScale = 1.0f;
|
||||||
|
|
||||||
mWidgetSurfaceCache.Init();
|
|
||||||
|
|
||||||
#if defined(XP_WIN) && !defined(WINCE)
|
#if defined(XP_WIN) && !defined(WINCE)
|
||||||
SCRIPT_DIGITSUBSTITUTE sds;
|
SCRIPT_DIGITSUBSTITUTE sds;
|
||||||
ScriptRecordDigitSubstitution(LOCALE_USER_DEFAULT, &sds);
|
ScriptRecordDigitSubstitution(LOCALE_USER_DEFAULT, &sds);
|
||||||
|
@ -288,6 +286,7 @@ nsThebesDeviceContext::Init(nsNativeWidget aWidget)
|
||||||
|
|
||||||
SetDPI();
|
SetDPI();
|
||||||
|
|
||||||
|
CommonInit();
|
||||||
|
|
||||||
#if defined(MOZ_ENABLE_GTK2) && defined(MOZ_X11)
|
#if defined(MOZ_ENABLE_GTK2) && defined(MOZ_X11)
|
||||||
if (getenv ("MOZ_X_SYNC")) {
|
if (getenv ("MOZ_X_SYNC")) {
|
||||||
|
|
|
@ -141,8 +141,6 @@ private:
|
||||||
nscoord mWidth;
|
nscoord mWidth;
|
||||||
nscoord mHeight;
|
nscoord mHeight;
|
||||||
|
|
||||||
nsRefPtrHashtable<nsISupportsHashKey, gfxASurface> mWidgetSurfaceCache;
|
|
||||||
|
|
||||||
nsRefPtr<gfxASurface> mPrintingSurface;
|
nsRefPtr<gfxASurface> mPrintingSurface;
|
||||||
float mPrintingScale;
|
float mPrintingScale;
|
||||||
nsCOMPtr<nsIDeviceContextSpec> mDeviceContextSpec;
|
nsCOMPtr<nsIDeviceContextSpec> mDeviceContextSpec;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче