Bug 801116 followup: clearer variable naming. DONTBUILD

This commit is contained in:
Boris Zbarsky 2012-10-16 10:52:55 -04:00
Родитель f6f9bc8fd4
Коммит 79c420f15b
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -2592,19 +2592,19 @@ nsLayoutUtils::IntrinsicForContainer(nsRenderingContext *aRenderingContext,
if (GetAbsoluteCoord(styleMaxHeight, h) ||
GetPercentHeight(styleMaxHeight, aFrame, h)) {
h = NS_MAX(0, h - heightTakenByBoxSizing);
nscoord maxHeight =
nscoord maxWidth =
NSToCoordRound(h * (float(ratio.width) / float(ratio.height)));
if (maxHeight < result)
result = maxHeight;
if (maxWidth < result)
result = maxWidth;
}
if (GetAbsoluteCoord(styleMinHeight, h) ||
GetPercentHeight(styleMinHeight, aFrame, h)) {
h = NS_MAX(0, h - heightTakenByBoxSizing);
nscoord minHeight =
nscoord minWidth =
NSToCoordRound(h * (float(ratio.width) / float(ratio.height)));
if (minHeight > result)
result = minHeight;
if (minWidth > result)
result = minWidth;
}
}
}