Bug 1422197 - Add fast path to get DocGroup in binding code for [CEReactions]

Tag #1375
This commit is contained in:
Matt A. Tobin
2020-04-17 07:29:57 -04:00
parent 38056aa9c9
commit 010f37f47b
30 changed files with 206 additions and 44 deletions
+6
View File
@@ -239,6 +239,12 @@ HTMLOptionsCollection::GetParentObject()
return mSelect;
}
DocGroup*
HTMLOptionsCollection::GetDocGroup() const
{
return mSelect ? mSelect->GetDocGroup() : nullptr;
}
NS_IMETHODIMP
HTMLOptionsCollection::NamedItem(const nsAString& aName,
nsIDOMNode** aReturn)