зеркало из https://github.com/mozilla/gecko-dev.git
Bug 801808: Replace DocAccessible constructor's PresShell null-check with an assertion. r=tbsaunde
This commit is contained in:
Родитель
e170f9ede0
Коммит
ecb6b89591
|
@ -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?
|
||||||
|
|
Загрузка…
Ссылка в новой задаче