Set the xul document title before layout in case xbl constructors want it b=278286 r+sr=bz

This commit is contained in:
neil%parkwaycc.co.uk 2005-01-14 18:00:29 +00:00
Родитель 540c3d249e
Коммит fb85706c0b
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -2973,12 +2973,12 @@ nsXULDocument::ResumeWalk()
// Everything after this point we only want to do once we're
// certain that we've been embedded in a presentation shell.
StartLayout();
nsAutoString title;
mRootContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::title, title);
SetTitle(title);
StartLayout();
if (mIsWritingFastLoad && IsChromeURI(mDocumentURI))
gXULCache->WritePrototype(mMasterPrototype);