mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 16:03:21 +00:00
Skip over whitespace properly after url string (it's optional whitespace not mandatory whitespace)
This commit is contained in:
parent
2ec9b9f488
commit
df41bc56dd
@ -399,9 +399,8 @@ PRBool nsCSSScanner::ParseIdent(PRInt32* aErrorCode,
|
||||
if (!GatherString(aErrorCode, c, ident)) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
if (!EatWhiteSpace(aErrorCode)) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
// Whitespace is allowed at the end of the URL before the right paren
|
||||
(void) EatWhiteSpace(aErrorCode);
|
||||
if (LookAhead(aErrorCode, ')')) {
|
||||
tokenType = eCSSToken_URL;
|
||||
}
|
||||
|
@ -399,9 +399,8 @@ PRBool nsCSSScanner::ParseIdent(PRInt32* aErrorCode,
|
||||
if (!GatherString(aErrorCode, c, ident)) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
if (!EatWhiteSpace(aErrorCode)) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
// Whitespace is allowed at the end of the URL before the right paren
|
||||
(void) EatWhiteSpace(aErrorCode);
|
||||
if (LookAhead(aErrorCode, ')')) {
|
||||
tokenType = eCSSToken_URL;
|
||||
}
|
||||
|
@ -399,9 +399,8 @@ PRBool nsCSSScanner::ParseIdent(PRInt32* aErrorCode,
|
||||
if (!GatherString(aErrorCode, c, ident)) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
if (!EatWhiteSpace(aErrorCode)) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
// Whitespace is allowed at the end of the URL before the right paren
|
||||
(void) EatWhiteSpace(aErrorCode);
|
||||
if (LookAhead(aErrorCode, ')')) {
|
||||
tokenType = eCSSToken_URL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user