Bug 33699: Allow whitespace in frameset rows and cols spec '*' r=nisheeth

This commit is contained in:
pollmann%netscape.com 2000-03-30 00:19:13 +00:00
Родитель a593ef6005
Коммит f2d2288f5f
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -739,10 +739,11 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
// Translate value to an integer
nsString token("");
aSpec.Mid(token, start, numberEnd - start);
token.StripChars(" \n\r\t"); // Trim whitespace from spec (Bug 33699)
// Treat * as 1*
if ((eFramesetUnit_Relative == aSpecs[i].mUnit) &&
(numberEnd == start)) {
(0 == token.Length())) {
aSpecs[i].mValue = 1;
}

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

@ -739,10 +739,11 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
// Translate value to an integer
nsString token("");
aSpec.Mid(token, start, numberEnd - start);
token.StripChars(" \n\r\t"); // Trim whitespace from spec (Bug 33699)
// Treat * as 1*
if ((eFramesetUnit_Relative == aSpecs[i].mUnit) &&
(numberEnd == start)) {
(0 == token.Length())) {
aSpecs[i].mValue = 1;
}