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

b=24778 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@72371 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com 2000-06-16 12:57:44 +00:00
parent 134a4a2d66
commit 3910c6d504
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;