зеркало из https://github.com/mozilla/gecko-dev.git
Changed CantRenderReplacedElement() to handle APPLET as well
This commit is contained in:
Родитель
cc7a87c47c
Коммит
ab9a5bc917
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче