mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
input type=image need to create their "alt" text
b=24778 r=kmcclusk
This commit is contained in:
parent
30c50b79f6
commit
182e19bcce
@ -10186,8 +10186,8 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresShell* aPresShell,
|
|||||||
parentFrame->FirstChild(aPresContext, listName, &firstChild);
|
parentFrame->FirstChild(aPresContext, listName, &firstChild);
|
||||||
nsFrameList frameList(firstChild);
|
nsFrameList frameList(firstChild);
|
||||||
|
|
||||||
// See whether it's an IMG or an OBJECT element
|
// See whether it's an IMG or an INPUT element (for image buttons)
|
||||||
if (nsHTMLAtoms::img == tag.get()) {
|
if (nsHTMLAtoms::img == tag.get() || nsHTMLAtoms::input == tag.get()) {
|
||||||
// It's an IMG element. Try and construct an alternate frame to use when the
|
// It's an IMG element. Try and construct an alternate frame to use when the
|
||||||
// image can't be rendered
|
// image can't be rendered
|
||||||
nsIFrame* newFrame;
|
nsIFrame* newFrame;
|
||||||
|
@ -10186,8 +10186,8 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresShell* aPresShell,
|
|||||||
parentFrame->FirstChild(aPresContext, listName, &firstChild);
|
parentFrame->FirstChild(aPresContext, listName, &firstChild);
|
||||||
nsFrameList frameList(firstChild);
|
nsFrameList frameList(firstChild);
|
||||||
|
|
||||||
// See whether it's an IMG or an OBJECT element
|
// See whether it's an IMG or an INPUT element (for image buttons)
|
||||||
if (nsHTMLAtoms::img == tag.get()) {
|
if (nsHTMLAtoms::img == tag.get() || nsHTMLAtoms::input == tag.get()) {
|
||||||
// It's an IMG element. Try and construct an alternate frame to use when the
|
// It's an IMG element. Try and construct an alternate frame to use when the
|
||||||
// image can't be rendered
|
// image can't be rendered
|
||||||
nsIFrame* newFrame;
|
nsIFrame* newFrame;
|
||||||
|
Loading…
Reference in New Issue
Block a user