Changed CantRenderReplacedElement() to handle APPLET as well

This commit is contained in:
troy%netscape.com 1999-03-24 01:13:59 +00:00
Родитель cc7a87c47c
Коммит ab9a5bc917
4 изменённых файлов: 8 добавлений и 6 удалений

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

@ -4053,8 +4053,9 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresContext* aPresContext,
parentFrame->InsertFrames(*aPresContext, *presShell, nsnull, prevSibling, newFrame);
}
} else if (nsHTMLAtoms::object == tag.get()) {
// It's an OBJECT element, so we should display the contents instead
} else if ((nsHTMLAtoms::object == tag.get()) ||
(nsHTMLAtoms::applet == tag.get())) {
// It's an OBJECT element or APPLET, so we should display the contents instead
nsCOMPtr<nsIStyleContext> styleContext;
const nsStyleDisplay* display;

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

@ -196,7 +196,7 @@ public:
// Called when the replaced element can not be rendered, and we should
// instead render the element's contents.
// The content object associated with aFrame should either be a IMG
// element or an OBJECT element.
// element, an OBJECT element, or an APPLET element
NS_IMETHOD CantRenderReplacedElement(nsIPresContext* aPresContext,
nsIFrame* aFrame) = 0;

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

@ -196,7 +196,7 @@ public:
// Called when the replaced element can not be rendered, and we should
// instead render the element's contents.
// The content object associated with aFrame should either be a IMG
// element or an OBJECT element.
// element, an OBJECT element, or an APPLET element
NS_IMETHOD CantRenderReplacedElement(nsIPresContext* aPresContext,
nsIFrame* aFrame) = 0;

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

@ -4053,8 +4053,9 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresContext* aPresContext,
parentFrame->InsertFrames(*aPresContext, *presShell, nsnull, prevSibling, newFrame);
}
} else if (nsHTMLAtoms::object == tag.get()) {
// It's an OBJECT element, so we should display the contents instead
} else if ((nsHTMLAtoms::object == tag.get()) ||
(nsHTMLAtoms::applet == tag.get())) {
// It's an OBJECT element or APPLET, so we should display the contents instead
nsCOMPtr<nsIStyleContext> styleContext;
const nsStyleDisplay* display;