зеркало из https://github.com/mozilla/gecko-dev.git
Bug 830479. Fix fatal build warning about unsigned/signed comparison on CLOSED TREE. r=me
This commit is contained in:
Родитель
ba696f2d76
Коммит
ab470235f5
|
@ -2400,7 +2400,7 @@ GetScrollPortSizeExcludingHeadersAndFooters(nsIFrame* aViewportFrame,
|
|||
|
||||
list.Sort(TopComparator());
|
||||
nscoord headerBottom = 0;
|
||||
for (int32_t i = 0; i < list.Length(); ++i) {
|
||||
for (uint32_t i = 0; i < list.Length(); ++i) {
|
||||
if (list[i].top <= headerBottom) {
|
||||
headerBottom = std::max(headerBottom, list[i].bottom);
|
||||
}
|
||||
|
@ -2408,7 +2408,7 @@ GetScrollPortSizeExcludingHeadersAndFooters(nsIFrame* aViewportFrame,
|
|||
|
||||
list.Sort(ReverseBottomComparator());
|
||||
nscoord footerTop = aScrollPort.height;
|
||||
for (int32_t i = 0; i < list.Length(); ++i) {
|
||||
for (uint32_t i = 0; i < list.Length(); ++i) {
|
||||
if (list[i].bottom >= footerTop) {
|
||||
footerTop = std::min(footerTop, list[i].top);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче