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

@ -1831,7 +1831,8 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(FragmentOrElement)
}
nsAutoString classes;
const nsAttrValue* classAttrValue = tmp->GetClasses();
const nsAttrValue* classAttrValue = tmp->IsElement() ?
tmp->AsElement()->GetClasses() : nullptr;
if (classAttrValue) {
classes.AppendLiteral(" class='");
nsAutoString classString;