Fix for bug 93305. Remove unnecessary prefs code. r=dbaron, sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@100228 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
77ed534011
commit
06b99b306e
@ -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;
|
||||
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user