Bug 801808: Replace DocAccessible constructor's PresShell null-check with an assertion. r=tbsaunde

This commit is contained in:
Daniel Holbert 2012-10-15 15:06:03 -07:00
Родитель e170f9ede0
Коммит ecb6b89591
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -43,6 +43,7 @@
#include "nsIURI.h" #include "nsIURI.h"
#include "nsIWebNavigation.h" #include "nsIWebNavigation.h"
#include "nsFocusManager.h" #include "nsFocusManager.h"
#include "mozilla/Assertions.h"
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#ifdef A11Y_LOG #ifdef A11Y_LOG
@ -85,8 +86,8 @@ DocAccessible::
mPresShell(aPresShell) mPresShell(aPresShell)
{ {
mFlags |= eDocAccessible | eNotNodeMapEntry; mFlags |= eDocAccessible | eNotNodeMapEntry;
if (mPresShell) MOZ_ASSERT(mPresShell, "should have been given a pres shell");
mPresShell->SetDocAccessible(this); mPresShell->SetDocAccessible(this);
mDependentIDsHash.Init(); mDependentIDsHash.Init();
// XXX aaronl should we use an algorithm for the initial cache size? // XXX aaronl should we use an algorithm for the initial cache size?