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

git-svn-id: svn://10.0.0.236/trunk@64538 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
2000-03-30 01:03:02 +00:00
parent 8618f140da
commit 541d556187
2 changed files with 8 additions and 8 deletions

View File

@@ -695,9 +695,10 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
static const PRUnichar PERCENT('%');
static const PRUnichar COMMA(',');
// remove leading and trailing whitespace
// also remove leading/trialing commas (bug 31482)
aSpec.Trim(" \n\r\t,");
// remove whitespace (Bug 33699)
// also remove leading/trailing commas (bug 31482)
aSpec.StripChars(" \n\r\t");
aSpec.Trim(",");
// Count the commas
PRInt32 commaX = aSpec.FindChar(COMMA);
@@ -739,7 +740,6 @@ 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) &&