From 3786b454055400f8f54b0300a26aea4c51c97fa7 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Tue, 22 Feb 2000 22:05:04 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsLineBox.cpp | 2 ++ mozilla/layout/html/base/src/nsLineBox.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mozilla/layout/generic/nsLineBox.cpp b/mozilla/layout/generic/nsLineBox.cpp index 6fe6413a15b..3dd6910c33e 100644 --- a/mozilla/layout/generic/nsLineBox.cpp +++ b/mozilla/layout/generic/nsLineBox.cpp @@ -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; diff --git a/mozilla/layout/html/base/src/nsLineBox.cpp b/mozilla/layout/html/base/src/nsLineBox.cpp index 6fe6413a15b..3dd6910c33e 100644 --- a/mozilla/layout/html/base/src/nsLineBox.cpp +++ b/mozilla/layout/html/base/src/nsLineBox.cpp @@ -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;