зеркало из https://github.com/mozilla/gecko-dev.git
Bug 899886 - Don't return null from nsStyleSet::ReparentStyleContext. r=dbaron
This commit is contained in:
Родитель
1c674f84da
Коммит
9e4cce4c84
|
@ -1741,10 +1741,7 @@ nsStyleSet::ReparentStyleContext(nsStyleContext* aStyleContext,
|
|||
nsStyleContext* aNewParentContext,
|
||||
Element* aElement)
|
||||
{
|
||||
if (!aStyleContext) {
|
||||
NS_NOTREACHED("must have style context");
|
||||
return nullptr;
|
||||
}
|
||||
MOZ_ASSERT(aStyleContext, "aStyleContext must not be null");
|
||||
|
||||
// This short-circuit is OK because we don't call TryStartingTransition
|
||||
// during style reresolution if the style context pointer hasn't changed.
|
||||
|
|
Загрузка…
Ссылка в новой задаче