зеркало из https://github.com/mozilla/gecko-dev.git
Fixing StartLayout so that it asserts and leaves the function if no root
content is available.
This commit is contained in:
Родитель
93ec012618
Коммит
fa48a0b102
|
@ -3943,6 +3943,10 @@ XULDocumentImpl::Init(void)
|
|||
nsresult
|
||||
XULDocumentImpl::StartLayout(void)
|
||||
{
|
||||
NS_ASSERTION(mRootContent != nsnull, "Error in XUL file. Love to tell ya where if only I knew.");
|
||||
if (!mRootContent)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
if (mFragmentRoot)
|
||||
return NS_OK; // Subdocuments rely on the parent document for layout
|
||||
|
||||
|
|
|
@ -3943,6 +3943,10 @@ XULDocumentImpl::Init(void)
|
|||
nsresult
|
||||
XULDocumentImpl::StartLayout(void)
|
||||
{
|
||||
NS_ASSERTION(mRootContent != nsnull, "Error in XUL file. Love to tell ya where if only I knew.");
|
||||
if (!mRootContent)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
if (mFragmentRoot)
|
||||
return NS_OK; // Subdocuments rely on the parent document for layout
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче