Use NS_NewBodyFrame and NS_NewHTMLFrame

This commit is contained in:
kipp%netscape.com 1998-09-08 22:37:24 +00:00
Родитель 2870cc7f0e
Коммит 320b3c0b16
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -1660,7 +1660,7 @@ nsGenericHTMLElement::CreateFrame(nsIPresContext* aPresContext,
rv = NS_NewObjectFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::body) {
rv = nsBodyFrame::NewFrame(&frame, mContent, aParentFrame);
rv = NS_NewBodyFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::br) {
rv = NS_NewBRFrame(mContent, aParentFrame, frame);
@ -1671,6 +1671,9 @@ nsGenericHTMLElement::CreateFrame(nsIPresContext* aPresContext,
else if (mTag == nsHTMLAtoms::hr) {
rv = NS_NewHRFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::html) {
rv = NS_NewHTMLFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::img) {
rv = NS_NewImageFrame(mContent, aParentFrame, frame);
}

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

@ -1660,7 +1660,7 @@ nsGenericHTMLElement::CreateFrame(nsIPresContext* aPresContext,
rv = NS_NewObjectFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::body) {
rv = nsBodyFrame::NewFrame(&frame, mContent, aParentFrame);
rv = NS_NewBodyFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::br) {
rv = NS_NewBRFrame(mContent, aParentFrame, frame);
@ -1671,6 +1671,9 @@ nsGenericHTMLElement::CreateFrame(nsIPresContext* aPresContext,
else if (mTag == nsHTMLAtoms::hr) {
rv = NS_NewHRFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::html) {
rv = NS_NewHTMLFrame(mContent, aParentFrame, frame);
}
else if (mTag == nsHTMLAtoms::img) {
rv = NS_NewImageFrame(mContent, aParentFrame, frame);
}