Fix for bug 93305. Remove unnecessary prefs code. r=dbaron, sr=attinasi.

This commit is contained in:
bnesse%netscape.com 2001-08-02 20:48:04 +00:00
parent 9f92e6bc3a
commit 7a05d18145
2 changed files with 0 additions and 28 deletions

View File

@ -55,8 +55,6 @@
#include "nsIScrollableView.h"
#include "nsIDocShell.h"
#include "nsICanvasFrame.h"
#include "nsIPref.h"
static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID);
#ifdef DEBUG_rods
//#define DEBUG_CANVAS_FOCUS
@ -157,17 +155,12 @@ protected:
PRPackedBool mDoPaintFocus;
nsCOMPtr<nsIPresContext> mPresContext;
// static members
static PRBool mShowFocusPrefOn;
private:
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) Release() { return NS_OK; }
};
PRBool CanvasFrame::mShowFocusPrefOn = PR_TRUE;
//----------------------------------------------------------------------
@ -233,13 +226,6 @@ CanvasFrame::Init(nsIPresContext* aPresContext,
scrollingView->AddScrollPositionListener((nsIScrollPositionListener *)this);
}
// Get the prefs service
nsresult result;
nsCOMPtr<nsIPref> prefs(do_GetService(kPrefServiceCID, &result));
if (NS_SUCCEEDED(result)) {
prefs->GetBoolPref("layout.reflow.showframecounts", &mShowFocusPrefOn);
}
return rv;
}

View File

@ -55,8 +55,6 @@
#include "nsIScrollableView.h"
#include "nsIDocShell.h"
#include "nsICanvasFrame.h"
#include "nsIPref.h"
static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID);
#ifdef DEBUG_rods
//#define DEBUG_CANVAS_FOCUS
@ -157,17 +155,12 @@ protected:
PRPackedBool mDoPaintFocus;
nsCOMPtr<nsIPresContext> mPresContext;
// static members
static PRBool mShowFocusPrefOn;
private:
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) Release() { return NS_OK; }
};
PRBool CanvasFrame::mShowFocusPrefOn = PR_TRUE;
//----------------------------------------------------------------------
@ -233,13 +226,6 @@ CanvasFrame::Init(nsIPresContext* aPresContext,
scrollingView->AddScrollPositionListener((nsIScrollPositionListener *)this);
}
// Get the prefs service
nsresult result;
nsCOMPtr<nsIPref> prefs(do_GetService(kPrefServiceCID, &result));
if (NS_SUCCEEDED(result)) {
prefs->GetBoolPref("layout.reflow.showframecounts", &mShowFocusPrefOn);
}
return rv;
}