зеркало из https://github.com/mozilla/gecko-dev.git
Fix crash from over-releasing from bryner's changes yesterday. b=114713
This commit is contained in:
Родитель
6dd68f3c64
Коммит
1a3d5baedd
|
@ -10656,7 +10656,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
|||
// data that this rule cached in the rule tree.
|
||||
if (primaryStyleFrame) {
|
||||
styleContext = primaryStyleFrame->GetStyleContext();
|
||||
styleContext->AddRef();
|
||||
} else {
|
||||
// We might be in the undisplayed map. Retrieve the style context from there.
|
||||
nsCOMPtr<nsIFrameManager> frameManager;
|
||||
|
@ -10676,8 +10675,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
|||
#endif
|
||||
}
|
||||
}
|
||||
if (styleContext)
|
||||
styleContext->Release();
|
||||
}
|
||||
|
||||
// first see if we need to manage the style system:
|
||||
|
|
|
@ -10656,7 +10656,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
|||
// data that this rule cached in the rule tree.
|
||||
if (primaryStyleFrame) {
|
||||
styleContext = primaryStyleFrame->GetStyleContext();
|
||||
styleContext->AddRef();
|
||||
} else {
|
||||
// We might be in the undisplayed map. Retrieve the style context from there.
|
||||
nsCOMPtr<nsIFrameManager> frameManager;
|
||||
|
@ -10676,8 +10675,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
|||
#endif
|
||||
}
|
||||
}
|
||||
if (styleContext)
|
||||
styleContext->Release();
|
||||
}
|
||||
|
||||
// first see if we need to manage the style system:
|
||||
|
|
Загрузка…
Ссылка в новой задаче