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

@ -165,10 +165,9 @@ nsIContent::DoGetID() const
}
const nsAttrValue*
nsIContent::DoGetClasses() const
Element::DoGetClasses() const
{
MOZ_ASSERT(HasFlag(NODE_MAY_HAVE_CLASS), "Unexpected call");
MOZ_ASSERT(IsElement(), "Only elements can have classes");
if (IsSVGElement()) {
const nsAttrValue* animClass =
@ -178,7 +177,7 @@ nsIContent::DoGetClasses() const
}
}
return AsElement()->GetParsedAttr(nsGkAtoms::_class);
return GetParsedAttr(nsGkAtoms::_class);
}
NS_IMETHODIMP