Use Pushback to put back the right character

git-svn-id: svn://10.0.0.236/trunk@15218 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1998-11-24 01:47:19 +00:00
parent e2045ab733
commit 0ddab1d0ce
3 changed files with 6 additions and 6 deletions

View File

@ -419,11 +419,11 @@ PRBool nsCSSScanner::NextURL(PRInt32& aErrorCode, nsCSSToken& aToken)
ident.SetLength(0);
if (ch == ')') {
Unread();
Pushback(ch);
// empty url spec: this is invalid
} else {
// start of a non-quoted url
Unread();
Pushback(ch);
PRBool ok = PR_TRUE;
for (;;) {
ch = Read(aErrorCode);

View File

@ -419,11 +419,11 @@ PRBool nsCSSScanner::NextURL(PRInt32& aErrorCode, nsCSSToken& aToken)
ident.SetLength(0);
if (ch == ')') {
Unread();
Pushback(ch);
// empty url spec: this is invalid
} else {
// start of a non-quoted url
Unread();
Pushback(ch);
PRBool ok = PR_TRUE;
for (;;) {
ch = Read(aErrorCode);

View File

@ -419,11 +419,11 @@ PRBool nsCSSScanner::NextURL(PRInt32& aErrorCode, nsCSSToken& aToken)
ident.SetLength(0);
if (ch == ')') {
Unread();
Pushback(ch);
// empty url spec: this is invalid
} else {
// start of a non-quoted url
Unread();
Pushback(ch);
PRBool ok = PR_TRUE;
for (;;) {
ch = Read(aErrorCode);