Use Pushback to put back the right character

This commit is contained in:
kipp@netscape.com
1998-11-24 01:47:19 +00:00
parent a31199d5d7
commit 49d2588e34
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);