input type=image need to create their "alt" text

b=24778 r=kmcclusk
This commit is contained in:
rods%netscape.com 2000-06-16 12:57:44 +00:00
parent 30c50b79f6
commit 182e19bcce
2 changed files with 4 additions and 4 deletions

View File

@ -10186,8 +10186,8 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresShell* aPresShell,
parentFrame->FirstChild(aPresContext, listName, &firstChild);
nsFrameList frameList(firstChild);
// See whether it's an IMG or an OBJECT element
if (nsHTMLAtoms::img == tag.get()) {
// See whether it's an IMG or an INPUT element (for image buttons)
if (nsHTMLAtoms::img == tag.get() || nsHTMLAtoms::input == tag.get()) {
// It's an IMG element. Try and construct an alternate frame to use when the
// image can't be rendered
nsIFrame* newFrame;

View File

@ -10186,8 +10186,8 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresShell* aPresShell,
parentFrame->FirstChild(aPresContext, listName, &firstChild);
nsFrameList frameList(firstChild);
// See whether it's an IMG or an OBJECT element
if (nsHTMLAtoms::img == tag.get()) {
// See whether it's an IMG or an INPUT element (for image buttons)
if (nsHTMLAtoms::img == tag.get() || nsHTMLAtoms::input == tag.get()) {
// It's an IMG element. Try and construct an alternate frame to use when the
// image can't be rendered
nsIFrame* newFrame;