mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-31 03:51:38 +09:00
HTML - implement the labels attribute (follow up)
This commit is contained in:
parent
5b24f05ce7
commit
b9e802f497
20 changed files with 87 additions and 77 deletions
|
|
@ -126,8 +126,10 @@ PrintDisplayItemTo(nsDisplayListBuilder* aBuilder, nsDisplayItem* aItem,
|
|||
contentData.AppendLiteral(" id:");
|
||||
contentData.Append(tmp);
|
||||
}
|
||||
if (content->GetClasses()) {
|
||||
content->GetClasses()->ToString(tmp);
|
||||
const nsAttrValue* classes = content->IsElement() ?
|
||||
content->AsElement()->GetClasses() : nullptr;
|
||||
if (classes) {
|
||||
classes->ToString(tmp);
|
||||
contentData.AppendLiteral(" class:");
|
||||
contentData.Append(tmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue