зеркало из https://github.com/mozilla/gecko-dev.git
Allow EOF to end declarations. Bug 311617, r+sr=dbaron
This commit is contained in:
Родитель
ac1ec75d5d
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче