зеркало из https://github.com/mozilla/gecko-dev.git
changing nsCOMPtr to weak references for PresContext
a=leaf, r=self, bug=bloat&leak went up
This commit is contained in:
Родитель
f9e8a0926b
Коммит
fab88c6406
|
@ -76,6 +76,7 @@ nsFormControlFrame::nsFormControlFrame()
|
|||
mFormFrame = nsnull;
|
||||
mSuggestedWidth = NS_FORMSIZE_NOTSET;
|
||||
mSuggestedHeight = NS_FORMSIZE_NOTSET;
|
||||
mPresContext = nsnull;
|
||||
|
||||
// Reflow Optimization
|
||||
mCacheSize.width = -1;
|
||||
|
|
|
@ -304,7 +304,7 @@ protected:
|
|||
nscoord mSuggestedWidth;
|
||||
nscoord mSuggestedHeight;
|
||||
|
||||
nsCOMPtr<nsIPresContext> mPresContext;
|
||||
nsIPresContext * mPresContext;
|
||||
|
||||
// Reflow Optimization
|
||||
nsSize mCacheSize;
|
||||
|
|
|
@ -83,6 +83,7 @@ nsHTMLButtonControlFrame::nsHTMLButtonControlFrame()
|
|||
mTranslatedRect = nsRect(0,0,0,0);
|
||||
mDidInit = PR_FALSE;
|
||||
mRenderer.SetNameSpace(kNameSpaceID_None);
|
||||
mPresContext = nsnull;
|
||||
|
||||
mCacheSize.width = -1;
|
||||
mCacheSize.height = -1;
|
||||
|
|
|
@ -156,7 +156,7 @@ protected:
|
|||
PRBool mDidInit;
|
||||
nsButtonFrameRenderer mRenderer;
|
||||
|
||||
nsCOMPtr<nsIPresContext> mPresContext;
|
||||
nsIPresContext * mPresContext;
|
||||
|
||||
//Resize Reflow OpitmizationSize;
|
||||
nsSize mCacheSize;
|
||||
|
|
|
@ -61,6 +61,7 @@ NS_NewLegendFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame)
|
|||
nsLegendFrame::nsLegendFrame()
|
||||
: nsAreaFrame()
|
||||
{
|
||||
mPresContext = nsnull;
|
||||
}
|
||||
|
||||
nsLegendFrame::~nsLegendFrame()
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
|
||||
PRInt32 GetAlign();
|
||||
|
||||
nsCOMPtr<nsIPresContext> mPresContext;
|
||||
nsIPresContext * mPresContext;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -76,6 +76,7 @@ nsFormControlFrame::nsFormControlFrame()
|
|||
mFormFrame = nsnull;
|
||||
mSuggestedWidth = NS_FORMSIZE_NOTSET;
|
||||
mSuggestedHeight = NS_FORMSIZE_NOTSET;
|
||||
mPresContext = nsnull;
|
||||
|
||||
// Reflow Optimization
|
||||
mCacheSize.width = -1;
|
||||
|
|
|
@ -304,7 +304,7 @@ protected:
|
|||
nscoord mSuggestedWidth;
|
||||
nscoord mSuggestedHeight;
|
||||
|
||||
nsCOMPtr<nsIPresContext> mPresContext;
|
||||
nsIPresContext * mPresContext;
|
||||
|
||||
// Reflow Optimization
|
||||
nsSize mCacheSize;
|
||||
|
|
|
@ -83,6 +83,7 @@ nsHTMLButtonControlFrame::nsHTMLButtonControlFrame()
|
|||
mTranslatedRect = nsRect(0,0,0,0);
|
||||
mDidInit = PR_FALSE;
|
||||
mRenderer.SetNameSpace(kNameSpaceID_None);
|
||||
mPresContext = nsnull;
|
||||
|
||||
mCacheSize.width = -1;
|
||||
mCacheSize.height = -1;
|
||||
|
|
|
@ -156,7 +156,7 @@ protected:
|
|||
PRBool mDidInit;
|
||||
nsButtonFrameRenderer mRenderer;
|
||||
|
||||
nsCOMPtr<nsIPresContext> mPresContext;
|
||||
nsIPresContext * mPresContext;
|
||||
|
||||
//Resize Reflow OpitmizationSize;
|
||||
nsSize mCacheSize;
|
||||
|
|
|
@ -61,6 +61,7 @@ NS_NewLegendFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame)
|
|||
nsLegendFrame::nsLegendFrame()
|
||||
: nsAreaFrame()
|
||||
{
|
||||
mPresContext = nsnull;
|
||||
}
|
||||
|
||||
nsLegendFrame::~nsLegendFrame()
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
|
||||
PRInt32 GetAlign();
|
||||
|
||||
nsCOMPtr<nsIPresContext> mPresContext;
|
||||
nsIPresContext * mPresContext;
|
||||
};
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче