Bug 591737 - Implement toggling open details by mouse click. r=bz

This commit is contained in:
Ting-Yu Lin
2016-01-20 23:20:42 +08:00
parent ab025bc613
commit b707636623
3 changed files with 51 additions and 0 deletions

View File

@@ -45,6 +45,13 @@ public:
SetHTMLBoolAttr(nsGkAtoms::open, aOpen, aError);
}
void ToggleOpen()
{
ErrorResult rv;
SetOpen(!Open(), rv);
rv.SuppressException();
}
protected:
virtual ~HTMLDetailsElement();