From 63bce0158825af1fda6bdf6297d55a54b0b7aa11 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Thu, 14 Oct 1999 23:10:59 +0000 Subject: [PATCH] Fixed edge case where line bounds wasn't quite accurate which causes the combined rect to not match which now wastes memory; only affects right aligned lines git-svn-id: svn://10.0.0.236/trunk@50705 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsLineLayout.cpp | 2 +- mozilla/layout/html/base/src/nsLineLayout.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsLineLayout.cpp b/mozilla/layout/generic/nsLineLayout.cpp index 3a3289ca32d..7ad7f912c27 100644 --- a/mozilla/layout/generic/nsLineLayout.cpp +++ b/mozilla/layout/generic/nsLineLayout.cpp @@ -2203,7 +2203,7 @@ nsLineLayout::HorizontalAlignFrames(nsRect& aLineBounds, PRBool aAllowJustify) pfd->mFrame->SetRect(pfd->mBounds); pfd = pfd->mNext; } -// aLineBounds.width += dx; + aLineBounds.width += dx; } if ((NS_STYLE_DIRECTION_RTL == psd->mDirection) && diff --git a/mozilla/layout/html/base/src/nsLineLayout.cpp b/mozilla/layout/html/base/src/nsLineLayout.cpp index 3a3289ca32d..7ad7f912c27 100644 --- a/mozilla/layout/html/base/src/nsLineLayout.cpp +++ b/mozilla/layout/html/base/src/nsLineLayout.cpp @@ -2203,7 +2203,7 @@ nsLineLayout::HorizontalAlignFrames(nsRect& aLineBounds, PRBool aAllowJustify) pfd->mFrame->SetRect(pfd->mBounds); pfd = pfd->mNext; } -// aLineBounds.width += dx; + aLineBounds.width += dx; } if ((NS_STYLE_DIRECTION_RTL == psd->mDirection) &&