mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Fix for bug 93305. Remove unnecessary prefs code. r=dbaron, sr=attinasi.
This commit is contained in:
parent
9f92e6bc3a
commit
7a05d18145
@ -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…
Reference in New Issue
Block a user