b=537870 avoid initialized declaration in for-statement conditional for VC7.1 r=roc

This commit is contained in:
Karl Tomlinson 2010-02-02 18:19:44 +13:00
Родитель 4ab62a6c6d
Коммит 698306bf36
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1002,8 +1002,8 @@ void ScrollRectIterBase::Move(ScrollRect** aUnmovedLink)
// which adds an O(n^2) cost to this algorithm (where n is the number of
// rectangles across x). The reverse-x ordering from InitialSortComparator
// avoids this for the case when rectangles are aligned in y.
for (ScrollRect** nextLink = aUnmovedLink;
ScrollRect* otherRect = *nextLink; ) {
for (ScrollRect** nextLink = aUnmovedLink; *nextLink; ) {
ScrollRect* otherRect = *nextLink;
NS_ASSERTION(otherRect->y >= rect->y, "Scroll rectangles out of order");
if (otherRect->y >= rect->YMost()) // doesn't overlap vertically
break;