зеркало из 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,
|
nsListBoxBodyFrame::RemoveChildFrame(nsBoxLayoutState &aState,
|
||||||
nsIFrame *aFrame)
|
nsIFrame *aFrame)
|
||||||
{
|
{
|
||||||
if (!mFrames.ContainsFrame(aFrame)) {
|
MOZ_ASSERT(mFrames.ContainsFrame(aFrame));
|
||||||
NS_ERROR("tried to remove a child frame which isn't our child");
|
MOZ_ASSERT(aFrame != GetContentInsertionFrame());
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (aFrame == GetContentInsertionFrame()) {
|
|
||||||
// Don't touch that one
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef ACCESSIBILITY
|
#ifdef ACCESSIBILITY
|
||||||
nsAccessibilityService* accService = nsIPresShell::AccService();
|
nsAccessibilityService* accService = nsIPresShell::AccService();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче