mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 00:31:27 +00:00
#42325 "Won't show page on www.teamtalk.com". Fix the parsing of ROWS="*%" in FRAMESETs. r=pollmann.
This commit is contained in:
parent
78e4562501
commit
f364ca73f4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user