From 3c9422ec4f1d45afa3725e3530dfd5ba6fb777bd Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Wed, 21 Nov 2001 00:43:27 +0000 Subject: [PATCH] Re-enable my fix git-svn-id: svn://10.0.0.236/trunk@108649 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/nsDeviceContext.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mozilla/gfx/src/nsDeviceContext.cpp b/mozilla/gfx/src/nsDeviceContext.cpp index 1f761b3a967..01ce85f72a8 100644 --- a/mozilla/gfx/src/nsDeviceContext.cpp +++ b/mozilla/gfx/src/nsDeviceContext.cpp @@ -63,12 +63,9 @@ static PRBool PR_CALLBACK DeleteValue(nsHashKey* aKey, void* aValue, void* closu DeviceContextImpl :: ~DeviceContextImpl() { -#if 0 - //XXXrbs temprarily disable this code as it causes tinderbox to turn orange nsCOMPtr obs(do_GetService("@mozilla.org/observer-service;1")); if (obs) obs->RemoveObserver(this, "memory-pressure"); -#endif if (nsnull != mFontCache) { @@ -112,15 +109,11 @@ void DeviceContextImpl :: CommonInit(void) for (PRInt32 cnt = 0; cnt < 256; cnt++) mGammaTable[cnt] = cnt; -#if 0 - //XXXrbs temprarily disable this code as it causes tinderbox to turn orange - // register as a memory-pressure observer to free font resources // in low-memory situations. nsCOMPtr obs(do_GetService("@mozilla.org/observer-service;1")); if (obs) obs->AddObserver(this, "memory-pressure", PR_FALSE); -#endif } NS_IMETHODIMP DeviceContextImpl :: GetTwipsToDevUnits(float &aTwipsToDevUnits) const