Backed out changeset 4c4df6ed1b41 - Bug 396185 - Make nsIFrame not inherit from nsISupports due to mochitest failures... these appear to be crashes in nsGenericHTMLElement::GetEditorInternal.
This commit is contained in:
@@ -105,9 +105,31 @@ nsHTMLButtonControlFrame::Init(
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_QUERYFRAME_HEAD(nsHTMLButtonControlFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsIFormControlFrame)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsHTMLContainerFrame)
|
||||
nsrefcnt nsHTMLButtonControlFrame::AddRef(void)
|
||||
{
|
||||
NS_WARNING("not supported");
|
||||
return 1;
|
||||
}
|
||||
|
||||
nsrefcnt nsHTMLButtonControlFrame::Release(void)
|
||||
{
|
||||
NS_WARNING("not supported");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Frames are not refcounted, no need to AddRef
|
||||
NS_IMETHODIMP
|
||||
nsHTMLButtonControlFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
||||
{
|
||||
NS_PRECONDITION(aInstancePtr, "null out param");
|
||||
|
||||
if (aIID.Equals(NS_GET_IID(nsIFormControlFrame))) {
|
||||
*aInstancePtr = static_cast<nsIFormControlFrame*>(this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return nsHTMLContainerFrame::QueryInterface(aIID, aInstancePtr);
|
||||
}
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
NS_IMETHODIMP nsHTMLButtonControlFrame::GetAccessible(nsIAccessible** aAccessible)
|
||||
|
||||
Reference in New Issue
Block a user