From d91034c3b82a48efe911761da8f377b665c284d7 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sun, 9 Oct 2005 18:22:51 +0000 Subject: [PATCH] Allow EOF to end declarations. Bug 311617, r+sr=dbaron --- layout/style/nsCSSParser.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index f62cbd09aab1..abf78a8c41f4 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -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;