Bug 178972 trivial code changes to nsXULElement.cpp

r=brendan sr=kin
This commit is contained in:
timeless%mozdev.org 2002-11-08 04:28:04 +00:00
Родитель 8b8585f9a9
Коммит 1850721eb5
1 изменённых файлов: 13 добавлений и 15 удалений

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

@ -5072,29 +5072,27 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream,
rv |= child->Deserialize(aStream, aContext, aDocumentURI,
aNodeInfos);
break;
case eType_Script:
case eType_Script: {
// language version obtained during deserialization.
child = new nsXULPrototypeScript(0, nsnull);
if (! child)
nsXULPrototypeScript* script = new nsXULPrototypeScript(0, nsnull);
if (! script)
return NS_ERROR_OUT_OF_MEMORY;
child = script;
child->mType = childType;
nsXULPrototypeScript* script = NS_STATIC_CAST(nsXULPrototypeScript*, child);
if (script) {
rv |= aStream->Read8(&script->mOutOfLine);
if (! script->mOutOfLine) {
rv |= script->Deserialize(aStream, aContext,
aDocumentURI, aNodeInfos);
}
else {
rv |= aStream->ReadObject(PR_TRUE, getter_AddRefs(script->mSrcURI));
rv |= script->DeserializeOutOfLineScript(aStream, aContext);
}
rv |= aStream->Read8(&script->mOutOfLine);
if (! script->mOutOfLine) {
rv |= script->Deserialize(aStream, aContext,
aDocumentURI, aNodeInfos);
}
else {
rv |= aStream->ReadObject(PR_TRUE, getter_AddRefs(script->mSrcURI));
rv |= script->DeserializeOutOfLineScript(aStream, aContext);
}
break;
}
}
mChildren[i] = child;