Bug 1340593 - Set NS_STYLE_HAS_CHILD_THAT_USES_RESET_STYLE from the WalkRuleTree codepath too. r=heycam

This commit is contained in:
L. David Baron 2017-02-19 23:10:42 -08:00
Родитель 8d2b101ac7
Коммит e2074ab1a5
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -2616,6 +2616,9 @@ nsRuleNode::WalkRuleTree(const nsStyleStructID aSID,
const void* parentStruct = parentContext->StyleData(aSID);
aContext->AddStyleBit(bit); // makes const_cast OK.
aContext->SetStyle(aSID, const_cast<void*>(parentStruct));
if (isReset) {
parentContext->AddStyleBit(NS_STYLE_HAS_CHILD_THAT_USES_RESET_STYLE);
}
return parentStruct;
}
else