mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Allow EOF to end declarations. Bug 311617, r+sr=dbaron
This commit is contained in:
parent
ac1ec75d5d
commit
d91034c3b8
@ -3184,12 +3184,7 @@ CSSParserImpl::ParseDeclaration(nsresult& aErrorCode,
|
||||
// See if the declaration is followed by a "!important" declaration
|
||||
PRBool isImportant = PR_FALSE;
|
||||
if (!GetToken(aErrorCode, PR_TRUE)) {
|
||||
if (aCheckForBraces) {
|
||||
// Premature eof is not ok when proper termination is mandated
|
||||
REPORT_UNEXPECTED_EOF(PEEndOfDeclEOF);
|
||||
ClearTempData(propID);
|
||||
return PR_FALSE;
|
||||
}
|
||||
// EOF is a perfectly good way to end a declaration and declaration block
|
||||
TransferTempData(aDeclaration, propID, isImportant,
|
||||
aMustCallValueAppended, aChanged);
|
||||
return PR_TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user