From 37e652dcfa9a359ff9b520815fedd39e1acbbcf8 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Fri, 22 Feb 2008 01:02:52 +0000 Subject: [PATCH] Bug 393490. When subsuming an interval, we need to merge its beginning into the current interval as well as its end, because it might start before the current interval. r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@246252 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsIntervalSet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/layout/generic/nsIntervalSet.cpp b/mozilla/layout/generic/nsIntervalSet.cpp index ce6a9aca31f..f103963523f 100644 --- a/mozilla/layout/generic/nsIntervalSet.cpp +++ b/mozilla/layout/generic/nsIntervalSet.cpp @@ -88,6 +88,7 @@ void nsIntervalSet::IncludeInterval(coord_type aBegin, coord_type aEnd) Interval *subsumed = newInterval->mNext; while (subsumed && subsumed->mBegin <= aEnd) { + newInterval->mBegin = PR_MIN(newInterval->mBegin, subsumed->mBegin); newInterval->mEnd = PR_MAX(newInterval->mEnd, subsumed->mEnd); newInterval->mNext = subsumed->mNext; FreeInterval(subsumed);