diff --git a/mozilla/layout/generic/nsFrameSetFrame.cpp b/mozilla/layout/generic/nsFrameSetFrame.cpp index c1f2ab64257..1cba41c1f1d 100644 --- a/mozilla/layout/generic/nsFrameSetFrame.cpp +++ b/mozilla/layout/generic/nsFrameSetFrame.cpp @@ -352,7 +352,7 @@ void nsHTMLFramesetFrame::CalculateRowCol(nsIPresContext* aPresContext, // allocate the percentage sizes from what is left over from the fixed allocation for (i = 0; i < numPercent; i++) { j = percent[i]; - aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)percentMax / 100.0f); + aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)aSize / 100.0f); percentTotal += aValues[j]; } diff --git a/mozilla/layout/html/document/src/nsFrameSetFrame.cpp b/mozilla/layout/html/document/src/nsFrameSetFrame.cpp index c1f2ab64257..1cba41c1f1d 100644 --- a/mozilla/layout/html/document/src/nsFrameSetFrame.cpp +++ b/mozilla/layout/html/document/src/nsFrameSetFrame.cpp @@ -352,7 +352,7 @@ void nsHTMLFramesetFrame::CalculateRowCol(nsIPresContext* aPresContext, // allocate the percentage sizes from what is left over from the fixed allocation for (i = 0; i < numPercent; i++) { j = percent[i]; - aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)percentMax / 100.0f); + aValues[j] = NSToCoordRound((float)aSpecs[j].mValue * (float)aSize / 100.0f); percentTotal += aValues[j]; }