mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Backed out changeset f6a3f2525323 (bug 1113811) for breaking lots of things on a CLOSED TREE
This commit is contained in:
parent
fab2fc6098
commit
5014637e84
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user