HTML - implement the labels attribute (follow up)

This commit is contained in:
janekptacijarabaci 2017-08-18 13:39:37 +02:00 committed by Roy Tam
commit b9e802f497
20 changed files with 87 additions and 77 deletions

View file

@ -735,12 +735,12 @@ HTMLSelectElement::SetLength(uint32_t aLength, ErrorResult& aRv)
/* static */
bool
HTMLSelectElement::MatchSelectedOptions(nsIContent* aContent,
HTMLSelectElement::MatchSelectedOptions(Element* aElement,
int32_t /* unused */,
nsIAtom* /* unused */,
void* /* unused*/)
{
HTMLOptionElement* option = HTMLOptionElement::FromContent(aContent);
HTMLOptionElement* option = HTMLOptionElement::FromContent(aElement);
return option && option->Selected();
}