fix for bustage for evaughan. don't use nsCOMPtr with an implementation.

git-svn-id: svn://10.0.0.236/trunk@46690 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com
1999-09-10 02:22:46 +00:00
parent 68e1b81c5a
commit 2d9036668b

View File

@@ -101,12 +101,14 @@ public:
nsBoxFrameInner(nsBoxFrame* aThis)
{
mOuter = aThis;
mDebugInner = nsnull;
}
~nsBoxFrameInner()
{
if (mDebugInner) {
mDebugInner->RemoveListener();
NS_RELEASE(mDebugInner);
mDebugInner = nsnull;
}
}
@@ -121,7 +123,7 @@ public:
nsCOMPtr<nsISpaceManager> mSpaceManager; // We own this [OWNER].
PRUint32 mFlags;
nsBoxFrame* mOuter;
nsCOMPtr<nsBoxDebugInner> mDebugInner;
nsBoxDebugInner* mDebugInner;
// PRBool mIsDebug;
};
@@ -1794,6 +1796,7 @@ nsBoxFrameInner::UpdatePseudoElements(nsIPresContext& aPresContext)
if (hs && vs) {
if (!mDebugInner) {
mDebugInner = new nsBoxDebugInner(mOuter);
NS_ADDREF(mDebugInner);
mDebugInner->AddListener();
}
mDebugInner->mHorizontalDebugStyle = hs;
@@ -1803,6 +1806,7 @@ nsBoxFrameInner::UpdatePseudoElements(nsIPresContext& aPresContext)
if (mDebugInner)
{
mDebugInner->RemoveListener();
NS_RELEASE(mDebugInner);
mDebugInner = nsnull;
}
}