mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Give nsFloatManager::FloatInfo a copy constructor to avoid confusing refcount logging. (Bug 191448)
This commit is contained in:
parent
eee42cfdd7
commit
8f4b3155dc
@ -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);
|
||||
|
@ -210,6 +210,7 @@ private:
|
||||
|
||||
FloatInfo(nsIFrame* aFrame, const nsRect& aRect);
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
FloatInfo(const FloatInfo& aOther);
|
||||
~FloatInfo();
|
||||
#endif
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user