mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fixing StartLayout so that it asserts and leaves the function if no root
content is available.
This commit is contained in:
parent
93ec012618
commit
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user