Give HTMLButtonControlFrames their own frame type. Bug 335419, r+sr=dbaron

This commit is contained in:
bzbarsky@mit.edu
2006-04-25 19:56:45 +00:00
parent b990b77563
commit 7a214013bb
4 changed files with 12 additions and 1 deletions

View File

@@ -71,6 +71,7 @@
#include "nsIAccessibilityService.h"
#endif
#include "nsDisplayList.h"
#include "nsLayoutAtoms.h"
nsIFrame*
NS_NewHTMLButtonControlFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
@@ -155,6 +156,12 @@ NS_IMETHODIMP nsHTMLButtonControlFrame::GetAccessible(nsIAccessible** aAccessibl
}
#endif
nsIAtom*
nsHTMLButtonControlFrame::GetType() const
{
return nsLayoutAtoms::HTMLButtonControlFrame;
}
PRBool
nsHTMLButtonControlFrame::IsReset(PRInt32 type)
{