Bug 822854: Crash [@ nsRuleNode::ComputeColumnData] with -moz-column-rule-color: inherit r=heycam

This commit is contained in:
Jet Villegas 2013-01-04 16:17:33 -08:00
parent 631c7d89b1
commit 480e7cc1c8

View File

@ -7139,7 +7139,12 @@ nsRuleNode::ComputeColumnData(void* aStartStruct,
canStoreInRuleTree = false;
column->mColumnRuleColorIsForeground = false;
if (parent->mColumnRuleColorIsForeground) {
column->mColumnRuleColor = parentContext->GetStyleColor()->mColor;
if (parentContext) {
column->mColumnRuleColor = parentContext->GetStyleColor()->mColor;
} else {
nsStyleColor defaultColumnRuleColor(mPresContext);
column->mColumnRuleColor = defaultColumnRuleColor.mColor;
}
} else {
column->mColumnRuleColor = parent->mColumnRuleColor;
}