Making object tag to display alternative context

This commit is contained in:
av%netscape.com 1998-12-13 21:44:55 +00:00
Родитель c67fd21ba3
Коммит 0fa0a7f9d5
3 изменённых файлов: 18 добавлений и 0 удалений

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

@ -1586,6 +1586,12 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
}
else if (nsHTMLAtoms::object == aTag) {
rv = NS_NewObjectFrame(aNewFrame);
//rv = NS_NewObjectFrame(aContent, aParentFrame, aNewFrame);
nsIFrame *blockFrame;
NS_NewBlockFrame(blockFrame, 0);
blockFrame->Init(*aPresContext, aContent, aNewFrame, aStyleContext);
aNewFrame = blockFrame;
processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::body == aTag) {
rv = NS_NewBodyFrame(aNewFrame, NS_BODY_THE_BODY|NS_BODY_NO_AUTO_MARGINS);

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

@ -1586,6 +1586,12 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
}
else if (nsHTMLAtoms::object == aTag) {
rv = NS_NewObjectFrame(aNewFrame);
//rv = NS_NewObjectFrame(aContent, aParentFrame, aNewFrame);
nsIFrame *blockFrame;
NS_NewBlockFrame(blockFrame, 0);
blockFrame->Init(*aPresContext, aContent, aNewFrame, aStyleContext);
aNewFrame = blockFrame;
processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::body == aTag) {
rv = NS_NewBodyFrame(aNewFrame, NS_BODY_THE_BODY|NS_BODY_NO_AUTO_MARGINS);

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

@ -1586,6 +1586,12 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
}
else if (nsHTMLAtoms::object == aTag) {
rv = NS_NewObjectFrame(aNewFrame);
//rv = NS_NewObjectFrame(aContent, aParentFrame, aNewFrame);
nsIFrame *blockFrame;
NS_NewBlockFrame(blockFrame, 0);
blockFrame->Init(*aPresContext, aContent, aNewFrame, aStyleContext);
aNewFrame = blockFrame;
processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::body == aTag) {
rv = NS_NewBodyFrame(aNewFrame, NS_BODY_THE_BODY|NS_BODY_NO_AUTO_MARGINS);