Backed out changeset f6a3f2525323 (bug 1113811) for breaking lots of things on a CLOSED TREE

This commit is contained in:
Wes Kocher 2014-12-22 17:03:11 -08:00
parent fab2fc6098
commit 5014637e84

View File

@ -6039,19 +6039,21 @@ CSSParserImpl::ParseDeclarationBlock(uint32_t aFlags, nsCSSContextType aContext)
}
css::Declaration* declaration = new css::Declaration();
mData.AssertInitialState();
for (;;) {
bool changed;
if (!ParseDeclaration(declaration, aFlags, true, &changed, aContext)) {
if (!SkipDeclaration(checkForBraces)) {
break;
}
if (checkForBraces) {
if (ExpectSymbol('}', true)) {
if (declaration) {
for (;;) {
bool changed;
if (!ParseDeclaration(declaration, aFlags, true, &changed, aContext)) {
if (!SkipDeclaration(checkForBraces)) {
break;
}
if (checkForBraces) {
if (ExpectSymbol('}', true)) {
break;
}
}
// Since the skipped declaration didn't end the block we parse
// the next declaration.
}
// Since the skipped declaration didn't end the block we parse
// the next declaration.
}
declaration->CompressFrom(&mData);
}