mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
Bug 823124: Add diagnostic (and otherwise good-to-have) assertion that non-root rule nodes must have a non-null rule (and vice-versa).
This commit is contained in:
parent
a6929b0c24
commit
58405dbcaf
@ -1299,6 +1299,9 @@ nsRuleNode::nsRuleNode(nsPresContext* aContext, nsRuleNode* aParent,
|
||||
mNoneBits(0),
|
||||
mRefCnt(0)
|
||||
{
|
||||
NS_ABORT_IF_FALSE(IsRoot() == !aRule,
|
||||
"non-root rule nodes must have a rule");
|
||||
|
||||
mChildren.asVoid = nullptr;
|
||||
MOZ_COUNT_CTOR(nsRuleNode);
|
||||
NS_IF_ADDREF(mRule);
|
||||
|
Loading…
Reference in New Issue
Block a user