Give nsFloatManager::FloatInfo a copy constructor to avoid confusing refcount logging. (Bug 191448)

This commit is contained in:
L. David Baron 2009-01-04 20:25:58 -05:00
parent eee42cfdd7
commit 8f4b3155dc
2 changed files with 10 additions and 0 deletions

View File

@ -413,6 +413,15 @@ nsFloatManager::FloatInfo::FloatInfo(nsIFrame* aFrame, const nsRect& aRect)
}
#ifdef NS_BUILD_REFCNT_LOGGING
nsFloatManager::FloatInfo::FloatInfo(const FloatInfo& aOther)
: mFrame(aOther.mFrame),
mRect(aOther.mRect),
mLeftYMost(aOther.mLeftYMost),
mRightYMost(aOther.mRightYMost)
{
MOZ_COUNT_CTOR(nsFloatManager::FloatInfo);
}
nsFloatManager::FloatInfo::~FloatInfo()
{
MOZ_COUNT_DTOR(nsFloatManager::FloatInfo);

View File

@ -210,6 +210,7 @@ private:
FloatInfo(nsIFrame* aFrame, const nsRect& aRect);
#ifdef NS_BUILD_REFCNT_LOGGING
FloatInfo(const FloatInfo& aOther);
~FloatInfo();
#endif
};