From ef38d2fd9c2553936ba196bc8dc3c6ba719f843e Mon Sep 17 00:00:00 2001 From: "braddr%puremagic.com" Date: Fri, 22 Oct 1999 05:32:31 +0000 Subject: [PATCH] Change NS_COMFALSE instances to NS_ERROR_ABORT's git-svn-id: svn://10.0.0.236/trunk@51516 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/src/nsSpaceManager.cpp | 6 +++--- mozilla/layout/generic/nsSpaceManager.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/base/src/nsSpaceManager.cpp b/mozilla/layout/base/src/nsSpaceManager.cpp index d84e6e4b249..c1012681890 100644 --- a/mozilla/layout/base/src/nsSpaceManager.cpp +++ b/mozilla/layout/base/src/nsSpaceManager.cpp @@ -114,7 +114,7 @@ nsSpaceManager::YMost(nscoord& aYMost) const if (mBandList.IsEmpty()) { aYMost = 0; - result = NS_COMFALSE; + result = NS_ERROR_ABORT; } else { BandRect* lastRect = mBandList.Tail(); @@ -260,7 +260,7 @@ nsSpaceManager::GetBandData(nscoord aYOffset, // band, then all the space is available nscoord yMost; - if ((NS_COMFALSE == YMost(yMost)) || (y >= yMost)) { + if ((NS_ERROR_ABORT == YMost(yMost)) || (y >= yMost)) { // All the requested space is available aBandData.mCount = 1; aBandData.mTrapezoids[0] = nsRect(0, aYOffset, aMaxSize.width, aMaxSize.height); @@ -611,7 +611,7 @@ nsSpaceManager::InsertBandRect(BandRect* aBandRect) // If there are no existing bands or this rect is below the bottommost // band, then add a new band nscoord yMost; - if ((NS_COMFALSE == YMost(yMost)) || (aBandRect->mTop >= yMost)) { + if ((NS_ERROR_ABORT == YMost(yMost)) || (aBandRect->mTop >= yMost)) { mBandList.Append(aBandRect); return; } diff --git a/mozilla/layout/generic/nsSpaceManager.cpp b/mozilla/layout/generic/nsSpaceManager.cpp index d84e6e4b249..c1012681890 100644 --- a/mozilla/layout/generic/nsSpaceManager.cpp +++ b/mozilla/layout/generic/nsSpaceManager.cpp @@ -114,7 +114,7 @@ nsSpaceManager::YMost(nscoord& aYMost) const if (mBandList.IsEmpty()) { aYMost = 0; - result = NS_COMFALSE; + result = NS_ERROR_ABORT; } else { BandRect* lastRect = mBandList.Tail(); @@ -260,7 +260,7 @@ nsSpaceManager::GetBandData(nscoord aYOffset, // band, then all the space is available nscoord yMost; - if ((NS_COMFALSE == YMost(yMost)) || (y >= yMost)) { + if ((NS_ERROR_ABORT == YMost(yMost)) || (y >= yMost)) { // All the requested space is available aBandData.mCount = 1; aBandData.mTrapezoids[0] = nsRect(0, aYOffset, aMaxSize.width, aMaxSize.height); @@ -611,7 +611,7 @@ nsSpaceManager::InsertBandRect(BandRect* aBandRect) // If there are no existing bands or this rect is below the bottommost // band, then add a new band nscoord yMost; - if ((NS_COMFALSE == YMost(yMost)) || (aBandRect->mTop >= yMost)) { + if ((NS_ERROR_ABORT == YMost(yMost)) || (aBandRect->mTop >= yMost)) { mBandList.Append(aBandRect); return; }