зеркало из https://github.com/mozilla/pjs.git
Missed a property. r/sr=ben/blake
This commit is contained in:
Родитель
6b244c5891
Коммит
d79104d8c5
|
@ -4557,6 +4557,27 @@ nsXULElement::SetCollapsed(PRBool aAttr)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULElement::GetAllowevents(PRBool* aResult)
|
||||
{
|
||||
*aResult = PR_FALSE;
|
||||
nsAutoString val;
|
||||
GetAttribute(NS_LITERAL_STRING("allowevents"), val);
|
||||
if (val.EqualsIgnoreCase("true"))
|
||||
*aResult = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULElement::SetAllowevents(PRBool aAttr)
|
||||
{
|
||||
if (aAttr)
|
||||
SetAttribute(NS_LITERAL_STRING("allowevents"), NS_LITERAL_STRING("true"));
|
||||
else
|
||||
RemoveAttribute(NS_LITERAL_STRING("allowevents"));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULElement::GetObserves(nsAWritableString& aAttr)
|
||||
{
|
||||
|
|
|
@ -70,6 +70,8 @@ interface nsIDOMXULElement : nsIDOMElement
|
|||
attribute DOMString tooltiptext;
|
||||
attribute DOMString statustext;
|
||||
|
||||
attribute boolean allowevents;
|
||||
|
||||
// XXX: This doesn't belong here, nsIDOMLinkStyle has this...
|
||||
readonly attribute nsIDOMCSSStyleDeclaration style;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче