зеркало из https://github.com/mozilla/gecko-dev.git
Bug 851841 - Make nsListBoxBodyFrame::RemoveChildFrame assertions fatal. r=bzbarsky
This commit is contained in:
Родитель
0dba8d033d
Коммит
cb5c798217
|
@ -1466,15 +1466,8 @@ void
|
|||
nsListBoxBodyFrame::RemoveChildFrame(nsBoxLayoutState &aState,
|
||||
nsIFrame *aFrame)
|
||||
{
|
||||
if (!mFrames.ContainsFrame(aFrame)) {
|
||||
NS_ERROR("tried to remove a child frame which isn't our child");
|
||||
return;
|
||||
}
|
||||
|
||||
if (aFrame == GetContentInsertionFrame()) {
|
||||
// Don't touch that one
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(mFrames.ContainsFrame(aFrame));
|
||||
MOZ_ASSERT(aFrame != GetContentInsertionFrame());
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
nsAccessibilityService* accService = nsIPresShell::AccService();
|
||||
|
|
Загрузка…
Ссылка в новой задаче