mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 899389 - Don't null check result of NS_NewStyleContext. r=dbaron
This commit is contained in:
parent
ed76cd5ffe
commit
5ecbce73bd
@ -790,16 +790,11 @@ nsStyleSet::GetContext(nsStyleContext* aParentContext,
|
||||
if (!result) {
|
||||
result = NS_NewStyleContext(aParentContext, aPseudoTag, aPseudoType,
|
||||
aRuleNode, aFlags & eSkipFlexItemStyleFixup);
|
||||
if (!result)
|
||||
return nullptr;
|
||||
if (aVisitedRuleNode) {
|
||||
nsRefPtr<nsStyleContext> resultIfVisited =
|
||||
NS_NewStyleContext(parentIfVisited, aPseudoTag, aPseudoType,
|
||||
aVisitedRuleNode,
|
||||
aFlags & eSkipFlexItemStyleFixup);
|
||||
if (!resultIfVisited) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!parentIfVisited) {
|
||||
mRoots.AppendElement(resultIfVisited);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user