mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 03:18:41 +00:00
Bug 822854: Crash [@ nsRuleNode::ComputeColumnData] with -moz-column-rule-color: inherit r=heycam
This commit is contained in:
parent
631c7d89b1
commit
480e7cc1c8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user