mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762435 - Make <progress> labelable again. r=bz
This commit is contained in:
parent
80843c1556
commit
f7f5b9aa92
@ -3106,6 +3106,12 @@ nsGenericHTMLElement::GetContextMenu(nsIDOMHTMLMenuElement** aContextMenu)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
bool
|
||||
nsGenericHTMLElement::IsLabelable() const
|
||||
{
|
||||
return Tag() == nsGkAtoms::progress;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
nsGenericHTMLFormElement::nsGenericHTMLFormElement(already_AddRefed<nsINodeInfo> aNodeInfo)
|
||||
|
@ -535,6 +535,8 @@ public:
|
||||
return HasAttr(kNameSpaceID_None, nsGkAtoms::hidden);
|
||||
}
|
||||
|
||||
virtual bool IsLabelable() const;
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Add/remove this element to the documents name cache
|
||||
|
Loading…
Reference in New Issue
Block a user