#42325 "Won't show page on www.teamtalk.com". Fix the parsing of ROWS="*%" in FRAMESETs. r=pollmann.

This commit is contained in:
pierre%netscape.com 2000-06-22 05:32:56 +00:00
parent 78e4562501
commit f364ca73f4
2 changed files with 16 additions and 0 deletions

View File

@ -732,6 +732,14 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
} else if (PERCENT == ch) {
aSpecs[i].mUnit = eFramesetUnit_Percent;
numberEnd--;
// check for "*%"
if (numberEnd > start) {
ch = aSpec.CharAt(numberEnd - 1);
if (ASTER == ch) {
aSpecs[i].mUnit = eFramesetUnit_Relative;
numberEnd--;
}
}
}
// Translate value to an integer

View File

@ -732,6 +732,14 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
} else if (PERCENT == ch) {
aSpecs[i].mUnit = eFramesetUnit_Percent;
numberEnd--;
// check for "*%"
if (numberEnd > start) {
ch = aSpec.CharAt(numberEnd - 1);
if (ASTER == ch) {
aSpecs[i].mUnit = eFramesetUnit_Relative;
numberEnd--;
}
}
}
// Translate value to an integer