added an assertion that will catch regressions associated with bug 25510

r=troy
a=jar


git-svn-id: svn://10.0.0.236/trunk@61439 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
2000-02-22 22:05:04 +00:00
parent 3ba35f971f
commit 3786b45405
2 changed files with 4 additions and 0 deletions

View File

@@ -388,6 +388,8 @@ nsLineBox::RemoveFloater(nsIFrame* aFrame)
void
nsLineBox::SetCombinedArea(const nsRect& aCombinedArea)
{
NS_ASSERTION(aCombinedArea.width >= 0, "illegal width for combined area");
NS_ASSERTION(aCombinedArea.height >= 0, "illegal height for combined area");
if (aCombinedArea != mBounds) {
if (mData) {
mData->mCombinedArea = aCombinedArea;